Emitter<State> class Null safety

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. [...]
read-only, inherited
isDone bool
Whether the EventHandler associated with this Emitter has been completed or 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, {required State onData(T data), State onError(Object error, StackTrace stackTrace)?}) Future<void>
when the stream emits new data and the result of onData is emitted. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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