Emitter<State> class
Null safety
Base interface for emitting states in response to events.
Constructors
- Emitter()
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- isCanceled → bool
-
Whether the EventHandler associated with this Emitter
has been canceled.
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
call(
State state) → void -
Emits the provided
state
. -
forEach<
T> (Stream< T> stream, FutureOr<State> onData(T)) → Future<void> -
when the
stream
emits new data and the result ofonData
is emitted. [...] -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
onEach<
T> (Stream< T> stream, void onData(T)) → Future<void> -
Subscribes to the provided
stream
and invokes theonData
callback when thestream
emits new data. [...] -
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited