Skip to main content

Comment class

<p>This class returns a Comment instance.</p>

Constructors

Comment ({String? text, String? createdAt, User? creator, String? post, String? likeCount})

Comment.fromJson (Map<String, dynamic> json)

factory

Properties

createdAtString?

<span class="feature">read / write</span>

creatorUser?

<span class="feature">read / write</span>

hashCodeint

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

likeCountString?

<span class="feature">read / write</span>

postString?

<span class="feature">read / write</span>

runtimeTypeType

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

textString?

<span class="feature">read / write</span>

Methods

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>