registerEvent<T> method

void registerEvent<T>(
  1. T func(
    1. Map<String, dynamic>
    )
)

Register an new event to be ingested by a handler. The type should reflect your type in your handler definition Handler<T>.

Implementation

void registerEvent<T>(T Function(Map<String, dynamic>) func) =>
    Event.registerEvent<T>(func);