Skip to main content

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

CommentService

:

Properties

[hashCode] [→ int] : The hash code for this object. ::: features no setterinherited :::

[runtimeType] [→ Type] : A representation of the runtime type of the object. ::: features no setterinherited :::

Methods

[createComments][([[String] postId, ][[String] text]) [→ Future<[void>]] ] : This function is used to add comment on the post.

[getCommentsForPost][([[String] postId]) [→ Future[<[List]>]] ] : This function is used to get all comments on the post.

[noSuchMethod][([[Invocation] invocation]) → dynamic ] : Invoked when a nonexistent method or property is accessed. ::: features inherited :::

[toString][ [→ String] ] : A string representation of this object. ::: features inherited :::

Operators

[operator ==][([[Object] other]) [→ bool] ] : The equality operator. ::: features inherited :::

  1. talawa
  2. comment_service
  3. CommentService class
comment_service library