CommentService class
CommentService class have different member functions which provides service in the context of commenting.
Services include:
createComments
- used to add comment on the post.getCommentsForPost
- used to get all comments on the post.
Constructors
Properties
hashCode → int
The hash code for this object.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
Methods
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.
inherited
toString() String
A string representation of this object.
inherited
Operators
operator ==(Object other) bool
The equality operator.
inherited