dispose method

void dispose()

Implementation

void dispose() {
  _disposed = true;
  _debouncer?.cancel();
  _debouncer = null;
  _firstScheduledAt = null;
  _lastPushed = null;
  _watchedOwner?.removeListener(_onSemanticsChanged);
  _watchedOwner = null;
  final handle = _gateHandle;
  if (handle != null) {
    _gateHandle = null;
    NavigationGate.instance.removeConsumer(handle);
  }
}