addCommentLocally method
void addCommentLocally (String msg)
Implementation
void addCommentLocally(String msg) {
_postService.addCommentLocally(_postID);
final creator = _userConfig.currentUser;
final Comment localComment = Comment(
text: msg,
createdAt: DateTime.now().toString(),
creator: creator,
);
_commentlist.insert(0, localComment);
notifyListeners();
}