Skip to main content

createComments method

[Future<[void>]] createComments(

  1. [[String] postId, ]
  2. [[String] text]

)

This function is used to add comment on the post.

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

  • postId: The post id on which comment is to be added.
  • text: The comment text.

returns: None

Implementation

Future<void> createComments(String postId, String text) async 
  1. talawa
  2. comment_service
  3. CommentService
  4. createComments method
CommentService class