Skip to main content

removeLike method

[Future[<[bool]>]] removeLike(

  1. [[String] postID]

)

Method to remove like in a Post.

This method basically update likedBy list of a Post and removes the like of a user in database.

params:

  • postID: ID of the post to remove like in database.

returns:

  • Future<void>: nothing

Implementation

Future<bool> removeLike(String postID) async 
  1. talawa
  2. post_service
  3. PostService
  4. removeLike method
PostService class