nativeClear method

  1. @override
void nativeClear()
override

Cancels the debounce timer used to coalesce _mapViewMoveStateChangedCallback notifications and detaches this controller from the event-handler dispatcher so further events from the native side are dropped.

Called by dispose before clearListeners so the event source is stopped before local references are severed.

Implementation

@override
void nativeClear() {
  _delayedEvent?.cancel();
  _delayedEvent = null;
  GemKitPlatform.instance.unregisterEventHandler(pointerId);
}