on<T extends WorldEvent> method

void on<T extends WorldEvent>(
  1. void callback(
    1. Event<T>
    )
)

Implementation

void on<T extends WorldEvent>(void Function(Event<T>) callback) =>
    event<T>().listen(callback);