Comment class

This model represents single comment.

Constructors

Comment({required String userID, required String text, required int vote, required bool isUpdated, DateTime? createdAt, DateTime? updatedAt})
Comment.parseJson(Map<String, dynamic> json)

Properties

createdAt DateTime?
Comment creation timestamp.
final
hashCode int
The hash code for this object.
no setterinherited
isUpdated bool
Was comment updated?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
Comment content.
final
updatedAt DateTime?
Last comment edit timestamp.
final
userID String
Comment author's id.
final
vote int
Comment vote.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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