Skip to main content

updatePost method

void updatePost (Post post)

This function updates the Post.

params: post : Post type, the post that need to be updated.

Implementation

void updatePost(Post post) {
if (_postID == post.sId) {
_likedBy = post.likedBy!;
checkAndSetTheIsLiked();
}
}