registerEvent<T> method
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);