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
Implementers

Constructors

StreamedState([T? initialData])
StreamedState.from(Stream<T> stream)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stateSubject → BehaviorSubject<T?>
Behavior state for updating events
final
stream Stream<T?>
The stream to which the event is transmitted
no setteroverride
value → T?
current value in stream
no setter

Methods

accept([T? data]) Future<T?>
Acceptance of a new event
override
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