NiceComment class

Comment data model.

Constructors

NiceComment({required String id, required String author, required String content, required DateTime createdAt, String? authorAvatar, String? parentId, int likes = 0, bool isLiked = false, List<NiceComment> children = const []})
const

Properties

author → String
final
authorAvatar → String?
final
children → List<NiceComment>
final
content → String
final
createdAt → DateTime
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
isLiked → bool
final
likes → int
final
parentId → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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