init method

void init()

Implementation

void init() {
  _eventChannel
      ?.receiveBroadcastStream()
      .listen(_handleNativeEvent, onError: _handleNativeErrorEvent);
  WidgetsBinding.instance.addObserver(this);

  // When Swipe left event triggered on iOS
  _didPopRoute.addListener(() {
    _packUpPlayback();
  });
}