AutoRefreshStateNotifier<T> class abstract

A class to use instead of StateNotifier which provides a way to automatically refresh the state.

Inheritance
Implementers

Constructors

AutoRefreshStateNotifier(T state)
A class to use instead of StateNotifier which provides a way to automatically refresh the state.

Properties

debugState → T
A development-only way to access state outside of StateNotifier.
read-onlyinherited
hashCode → int
The hash code for this object.
read-onlyinherited
hasListeners → bool
If a listener has been added using addListener and hasn't been removed yet.
read-onlyinherited
mounted → bool
Whether dispose was called or not.
read-onlyinherited
onError ↔ ErrorListener?
A callback for error reporting if one of the listeners added with addListener throws.
read / writeinherited
refreshRate → Duration
The refresh rate of the data.
read-only
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
state ↔ T
The current "state" of this StateNotifier.
read / writeinherited
stream → Stream<T>
A broadcast stream representation of a StateNotifier.
read-onlyinherited

Methods

addListener(Listener<T> listener, {bool fireImmediately = true}) → RemoveListener
Subscribes to this object.
inherited
dispose() → void
Frees all the resources associated with this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onRefresh() → FutureOr<T>
Returns the new state.
toString() → String
A string representation of this object.
inherited
updateShouldNotify(T old, T current) → bool
Whether to notify listeners or not when state changes
inherited

Operators

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