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
stream Stream<T>
The stream to which the event is transmitted
no setteroverride
value → T
Current value of stream
no setter

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 to data
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