dispose static method

void dispose()

Implementation

static void dispose() {
  if (_initialized) {
    WidgetsBinding.instance.removeObserver(_observer);
    _channel.setMethodCallHandler(null);
    _initialized = false;
  }
  _currentScreen = null;
  _eventDispatcher = null;
  _onScreenshotCallback = null;
  _onRecordingStartCallback = null;
  _onRecordingStopCallback = null;
  _rules.clear();
  _eventLog.clear();
}