CommentListStateNotifier class
Manages the state of a comment list and handles state updates.
Provides methods to update the comment list state in response to data changes and real-time events from the Stream Feeds API.
- Inheritance
-
- Object
- StateNotifier<
CommentListState> - CommentListStateNotifier
Constructors
- CommentListStateNotifier({required CommentListState initialState})
Properties
- commentSort → CommentsSort
-
no setter
- debugState → CommentListState
-
A development-only way to access
stateoutside ofStateNotifier.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
If a listener has been added using
addListenerand hasn't been removed yet.no setterinherited - mounted → bool
-
Whether
disposewas called or not.no setterinherited - onError ↔ ErrorListener?
-
A callback for error reporting if one of the listeners added with
addListenerthrows.getter/setter pairinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state ↔ CommentListState
-
The current "state" of this
StateNotifier.getter/setter pairinherited -
stream
→ Stream<
CommentListState> -
A broadcast stream representation of a
StateNotifier.no setterinherited
Methods
-
addListener(
Listener< CommentListState> listener, {bool fireImmediately = true}) → RemoveListener -
Subscribes to this object.
inherited
-
dispose(
) → void -
Frees all the resources associated with this object.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onCommentRemoved(
String commentId) → void - Handles removal of a comment by ID.
-
onCommentUpdated(
CommentData comment) → void - Handles updates to a specific comment.
-
onQueryMoreComments(
PaginationResult< CommentData> result, {Filter<Object> ? filter, CommentsSort? sort}) → void - Handles the result of a query for more comments.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateShouldNotify(
CommentListState old, CommentListState current) → bool -
Whether to notify listeners or not when
statechangesinherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited