ZenithEventHandler<E extends ZenithEvent> typedef

ZenithEventHandler<E extends ZenithEvent> = FutureOr<void> Function(ZenithRef ref, E event)

Function signature for domain event listeners.

Implementation

typedef ZenithEventHandler<E extends ZenithEvent> =
    FutureOr<void> Function(ZenithRef ref, E event);