MethodChannelXAccessibility constructor

MethodChannelXAccessibility()

Subscribes to the native event channel where one is registered.

Implementation

MethodChannelXAccessibility() {
  if (!_hasNativeHandler) return;
  _events.receiveBroadcastStream().listen(
    _onEvent,
    onError: (e, st) {
      _log.w('event channel error', error: e, stackTrace: st);
    },
  );
}