Skip to main content

updatePost method

void updatePost (Post post)

<p>This function updates the Post.</p> <p>params: <code>post</code> : <code>Post</code> type, the post that need to be updated.</p>

Implementation

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