Skip to main content

getCommentsForPost method

[Future[<[List]>]] getCommentsForPost(

  1. [[String] postId]

)

This function is used to get all comments on the post.

To verify things are working, check out the native platform logs. params:

  • postId: The post id for which comments are to be fetched.

returns:

  • Future<List<dynamic>>: promise that will be fulfilled with list of comments.

Implementation

Future<List<dynamic>> getCommentsForPost(String postId) async 
  1. talawa
  2. comment_service
  3. CommentService
  4. getCommentsForPost method
CommentService class