onStep<T extends BusEvent> method

  1. @override
Registration onStep<T extends BusEvent>(
  1. String label,
  2. EventHandler<T> handler
)
override

Calls handler at the end of each step for every T the step published. Inside the step: a handler may change the world, and is run again on a rollback.

Implementation

@override
Registration onStep<T extends BusEvent>(
  String label,
  EventHandler<T> handler,
) => _subscribe<T>(label, BusChannel.step, handler);