CommentService class have different member functions which provides service in the context of commenting.
createComments- used to add comment on the post.
getCommentsForPost- used to get all comments on the post.
The hash code for this object.
A representation of the runtime type of the object.
createComments(String postId, String text) Future<void>
This function is used to add comment on the post.
getCommentsForPost(String postId) Future
This function is used to fetch all comments on the post.
noSuchMethod(Invocation invocation) dynamic
Invoked when a non-existent method or property is accessed.
A string representation of this object.
operator ==(Object other) bool
The equality operator.