Skip to main content

createComment method

[Future<[void>]] createComment(

  1. [[String] msg]

)

This function add comment on the post. The function uses createComments method provided by Comment Service.

params:

  • msg: The comment text.

returns: None

Implementation

Future<void> createComment(String msg) async 
  1. talawa
  2. comments_view_model
  3. CommentsViewModel
  4. createComment method
CommentsViewModel class