stop method

void stop(
  1. HandleEventCallback callback
)

Stop resampling.

This will dispatch pending events by calling callback and reset internal state.

Implementation

void stop(HandleEventCallback callback) {
  while (_queuedEvents.isNotEmpty) {
    callback(_queuedEvents.removeFirst());
  }
  _pointerIdentifier = 0;
  _isDown = false;
  _isTracked = false;
  _position = Offset.zero;
  _next = null;
  _last = null;
}