Comment class
Constructors
-
const
factory
-
factory
Properties
-
content
→ String
-
The content of the comment
no setterinherited
-
copyWith
→ $CommentCopyWith<Comment>
-
Create a copy of Comment
with the given fields replaced by the non-null parameter values.
no setterinherited
-
createdAt
→ DateTime
-
The date the comment was created
no setterinherited
-
createdBy
→ String
-
The id of the user who created the comment
no setterinherited
-
downvoted
→ bool
-
Whether the user has downvoted the comment
no setterinherited
-
downvotes
→ int
-
The amount of downvotes the comment has
no setterinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
id
→ String
-
The comment id
no setterinherited
-
isPrivate
→ bool
-
Whether the comment is private
no setterinherited
-
pinned
→ bool
-
Whether the comment is pinned
no setterinherited
-
replies
→ List<Comment>
-
The replies to the comment
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
upvoted
→ bool
-
Whether the user has upvoted the comment
no setterinherited
-
upvotes
→ int
-
The amount of upvotes the comment has
no setterinherited
-
user
→ UserSimple
-
The user who created the comment
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson()
→ Map<String, dynamic>
-
Serializes this Comment to a JSON map.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited