PollVoteListStateNotifier class

Manages the state of a poll vote list and handles state updates.

Provides methods to update the poll vote list state in response to data changes and real-time events from the Stream Feeds API.

Inheritance

Constructors

PollVoteListStateNotifier({required PollVoteListState initialState})

Properties

debugState PollVoteListState
A development-only way to access state outside of StateNotifier.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
If a listener has been added using addListener and hasn't been removed yet.
no setterinherited
mounted bool
Whether dispose was called or not.
no setterinherited
onError ↔ ErrorListener?
A callback for error reporting if one of the listeners added with addListener throws.
getter/setter pairinherited
queryConfig ↔ QueryConfiguration<PollVoteData>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state PollVoteListState
The current "state" of this StateNotifier.
getter/setter pairinherited
stream Stream<PollVoteListState>
A broadcast stream representation of a StateNotifier.
no setterinherited
votesSort List<Sort<PollVoteData>>
no setter

Methods

addListener(Listener<PollVoteListState> 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
onPollDeleted() → void
Handles the deletion of the poll.
onPollVoteRemoved(String voteId) → void
Handles the removal of a poll vote.
onPollVoteUpserted(PollVoteData vote) → void
Handles the addition or update of a poll vote.
onQueryMorePollVotes(PaginationResult<PollVoteData> result, QueryConfiguration<PollVoteData> queryConfig) → void
Handles the result of a query for more poll votes.
toString() String
A string representation of this object.
inherited
updateShouldNotify(PollVoteListState old, PollVoteListState current) bool
Whether to notify listeners or not when state changes
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited