core/zenith/zenith_mediator library

Classes

ZenithCommand<R>
Base abstract class for a 1-to-1 command returning a value of type R.
ZenithEvent
Base abstract class for a 1-to-Many domain event.
ZenithMediator
An in-memory Command/Event Mediator engine for flutter_zenith.
ZenithPipelineBehavior
Abstract pipeline behavior wrapping command execution for cross-cutting concerns (logging, timing, validation, metric capture).

Extensions

ZenithMediatorContainerX on ZenithContainer
Extension on ZenithContainer and ZenithRef giving access to ZenithMediator.
ZenithMediatorRefX on ZenithRef
Extension on ZenithRef for mediator access.

Typedefs

ZenithCommandHandler<C extends ZenithCommand<R>, R> = FutureOr<R> Function(ZenithRef ref, C command)
Function signature for command execution handlers.
ZenithEventHandler<E extends ZenithEvent> = FutureOr<void> Function(ZenithRef ref, E event)
Function signature for domain event listeners.