register method

void register()

Implementation

void register() {
  eventChannel.receiveBroadcastStream().listen(_onEvent, onError: _onError);
}