CommentListState class
An observable state object that manages the current state of a comment list.
Maintains the current list of comments and pagination information for efficient loading and navigation through comment collections.
- Annotations
-
- @freezed
Constructors
-
CommentListState({List<
CommentData> comments = const [], PaginationData? pagination}) -
const
Properties
- canLoadMore → bool
-
Indicates whether there are more comments available to load.
no setter
-
comments
→ List<
CommentData> -
All the paginated comments currently loaded.
final
-
copyWith
→ $CommentListStateCopyWith<
CommentListState> -
Create a copy of CommentListState
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- pagination → PaginationData?
-
Last pagination information.
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