Skip to main content

initialise method

[Future<[void>]] initialise(

  1. [[String] postID]

)

This function is used to initialise the CommentViewModel.

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

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

returns: None

Implementation

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