Comment class Null safety

A shader comment



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


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


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 non-existent method or property is accessed. [...]
toJson() Map<String, dynamic>
Creates a json map from a Comment
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]