subscribe method

DisposeFunction subscribe(
  1. EventPlugin events
)

Subscribes listener on events, keeping the generic type T. Used by the platform; features do not call this.

Implementation

DisposeFunction subscribe(EventPlugin events) => events.on<T>(listener);