Comment class
Constructors
- Comment({required String uuid, required String content, required CommentType type, required String userUUID, required String parentUUID, required DateTime createdAt, required DateTime updatedAt, required bool isHidden, String? replyCommentUUID})
-
const
- Comment.fromJson(String source)
-
factory
-
Comment.fromMap(Map<
String, dynamic> map) -
factory
Properties
- content → String
-
Comment content in Markdown format.
Can use @userUUID to tag others. (UUID will not be displayed in the UI, but the username)
final
- createdAt → DateTime
-
The time when the comment was created.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isHidden → bool
-
final
- parentUUID → String
-
If the type is CommentType.translate parent is the SourceText
If the type is CommentType.wiki parent is the MinecraftMod.
final
- replyCommentUUID → String?
-
If the comment is a reply to another comment, this field will be set.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → CommentType
-
The type of the comment.
final
- updatedAt → DateTime
-
The time when the comment was last updated.
final
- userUUID → String
-
UUID of the user who sent this comment
final
- uuid → String
-
final
Methods
-
copyWith(
{String? uuid, String? content, CommentType? type, String? userUUID, String? parentUUID, DateTime? createdAt, DateTime? updatedAt, bool? isHidden, String? replyCommentUUID}) → Comment -
getReplies(
) → Future< ListModelResponse< Comment> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override