Emitter<State> class
abstract
An Emitter is a class which is capable of emitting new states.
See also:
EventHandlerwhich has access to an Emitter.
Constructors
- Emitter()
Properties
Methods
-
call(
State state) → void -
Emits the provided
state. -
forEach<
T> (Stream< T> stream, {required State onData(T data), State onError(Object error, StackTrace stackTrace)?}) → Future<void> -
Subscribes to the provided
streamand invokes theonDatacallback when thestreamemits new data and the result ofonDatais emitted. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onEach<
T> (Stream< T> stream, {required void onData(T data), void onError(Object error, StackTrace stackTrace)?}) → Future<void> -
Subscribes to the provided
streamand invokes theonDatacallback when thestreamemits new data. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited