Emitter<State> class abstract

An Emitter is a class which is capable of emitting new states.

See also:

Constructors

Emitter()

Properties

hashCode int
The hash code for this object.
no setterinherited
isDone bool
Whether the EventHandler associated with this Emitter has been completed or canceled.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 stream and invokes the onData callback when the stream emits new data and the result of onData is 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 stream and invokes the onData callback when the stream emits new data.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited