A predictable state management library for Dart.
Get started at bloclibrary.dev 🚀
= FutureOr<void> Function(Event event, Emitter<State> emit)
An event handler is responsible for reacting to an incoming
and can emit zero or more states via the Emitter.
= Stream<Event> Function(Event event)
Signature for a function which converts an incoming event
into an outbound stream of events.
Used when defining custom EventTransformers.
= Stream<Event> Function(Stream<Event> events, EventMapper<Event> mapper)
Used to change how events are processed.
By default events are processed concurrently.
= Stream<Transition<Event, State>> Function(Event)
@Deprecated - Use
on<Event> with an
Will be removed in v8.0.0