getCommentsForPost method
[Future[<[List]>]] getCommentsForPost(
- [[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
- talawa
- comment_service
- CommentService
- getCommentsForPost method