on<A extends FloatyAction> method
Registers handler for actions whose type matches key.type.
Implementation
void on<A extends FloatyAction>(
ActionKey<A> key,
FutureOr<void> Function(A action) handler,
) => _handlers.add<A>(key, handler);