MethodChannelXNotifications constructor
MethodChannelXNotifications()
Subscribes to the native event channel where one is registered.
Implementation
MethodChannelXNotifications() {
if (!_hasNativeHandler) return;
_eventsChannel.receiveBroadcastStream().listen(
_onEvent,
onError: (e, st) {
_log.w('event channel error', error: e, stackTrace: st);
},
);
}