StreamedState<T> class
A state of some type wrapped in a stream dictates the widget's state
It is reactive.
Usage:
StreamedStateBuilder<T>(
streamedState: yourStreamedState,
builder: (ctx, data) => Text(data.toString()),
)
- Implemented types
-
- Event<
T>
- Event<
- Implementers
Constructors
- StreamedState.new(T initialData)
-
StreamedState.from(Stream<
T> stream)
Properties
Methods
-
accept(
T data) → Future< void> -
Acceptance of a new event
override
-
acceptUnique(
T data) → Future< void> -
Accepts new
data
if current value is not equal todata
-
dispose(
) → void -
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