CommentForest class
A user-friendly representation of a forest of Comment objects.
Constructors
- CommentForest(SubmissionRef submission, [List? comments])
Properties
- comments → List
-
A list of top-level comments associated with the current CommentForest.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int
-
The number of top-level comments associated with the current
CommentForest.
no setter
- 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
-
replaceMore(
{dynamic limit = 32, dynamic threshold = 0}) → Future< void> - Iterate through the CommentForest, expanding instances of MoreComments.
-
toList(
) → List - Returns a list of all Comments in the CommentForest.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
int i) → dynamic