registerEvent<T> static method

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

Registers an event.

Implementation

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