StateNotifier class abstract
This class provides mechanism of delivering new UI states
and navigation
events
to widgets. Widgets should use getStateStream
and getNavigationStream to observe on StateNotifier events.
Constructors
Properties
- disposed → bool
-
Defines whether StateNotifier was disposed.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> -
Closes
state
andnavigation
streams. -
contains<
S> () → bool -
Checks whether a state of
S
type was registered before. - Returns navigation stream.
-
getStateStream<
S> () → Stream< S> ? -
Returns state stream according to
S
type. -
initial<
S> () → S -
Returns initial value for state of
S
type. -
latest<
S> () → S -
Returns the latest value for state of
S
type. - Notifies a new navigation event.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notify<
S> (S state) → void -
Notifies a new state of
S
type. -
observable<
S> ({required S initial}) → void -
Registers observable state of
S
type that can be processed by this StateNotifier. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited