enableWatcher method

void enableWatcher ()

Implementation

static void enableWatcher() async {
  if (_eventSubs == null) {
    await _channel.invokeMethod("enable_watch");
    _eventSubs = EventChannel('com.befovy.flutter_volume/event')
        .receiveBroadcastStream()
        .listen(_eventListener, onError: _errorListener);
  }
}