Comment class

A shader comment

Annotations
  • @JsonSerializable()

Constructors

Comment({required String id, required String shaderId, required String userId, String? picture, required DateTime date, required String text, bool hidden = false})
Builds a Comment
const
Comment.fromJson(Map<String, dynamic> json)
Creates a Comment from json map
factory

Properties

date DateTime
The date the comment was posted
final
hashCode int
The hash code for this object.
no setterinherited
hidden bool
If the current user comment is hidden
final
id String
The comment id
final
picture String?
The picture of the user who posted the comment
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shaderId String
The shader id
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
text String
The text of the comment
final
userId String
The id of the user who posted the comment
final

Methods

copyWith({String? id, String? shaderId, String? userId, String? picture, DateTime? date, String? text, bool? hidden}) Comment
Builds a a copy of a Comment
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Creates a json map from a Comment
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited