initialize method

  1. @override
void initialize()
override

Implementation

@override
void initialize() {
  _eventChannel.receiveBroadcastStream().listen((dynamic message) {
    _broadcastToGlobalListeners(message);
    _broadcastToPerMeetingListeners(message);
  }, onError: (dynamic error) {
    debugPrint('Meet Hour broadcast error: $error');
    _listeners.forEach((listener) {
      if (listener.onError != null) listener.onError!(error);
    });
    _perMeetingListeners.forEach((key, listener) {
      if (listener.onError != null) listener.onError!(error);
    });
  });
}