Skip to main content

CommentService class

<p>CommentService class have different member functions which provides service in the context of commenting.</p> <p>Services include:</p> <ul> <li><code>createComments</code> - used to add comment on the post.</li> <li><code>getCommentsForPost</code> - used to get all comments on the post.</li> </ul>

Constructors

CommentService ()

Properties

hashCodeint

The hash code for this object.
<span class="feature">read-only</span><span class="feature">inherited</span>

runtimeTypeType

A representation of the runtime type of the object.
<span class="feature">read-only</span><span class="feature">inherited</span>

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.
<span class="feature">inherited</span>

toString() String

A string representation of this object.
<span class="feature">inherited</span>

Operators

operator ==(Object other) bool

The equality operator.
<span class="feature">inherited</span>