Comments class

A set of all the comments for a specific piece of content.

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake, explicitToJson: true)

Constructors

Comments({required Authorperm parent, required Map<String, Comment> items, required Map<String, List<String>> children})
const
Comments.fromJson(Map<String, dynamic> json)
factory

Properties

children Map<String, List<String>>
A map of authorperms to the authorperms of its children
final
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
no setter
isNotEmpty bool
no setter
items Map<String, Comment>
A map of authorperms of comments to the Comment object
final
length int
no setter
parent Authorperm
The parent of these comments; this could be a post or a comment itself.
final
rootReplies List<Comment>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

childrenOf(Authorperm postId) List<Comment>?
containsComment(Authorperm id) bool
copyWith({Authorperm? parent, Map<String, Comment>? items, Map<String, List<String>>? children}) Comments
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String authorperm) Comment?