handleThumbPressEnd method

  1. @protected
  2. @mustCallSuper
void handleThumbPressEnd(
  1. Offset localPosition,
  2. Velocity velocity
)

Handler called when a long press has ended.

Implementation

@protected
@mustCallSuper
void handleThumbPressEnd(Offset localPosition, Velocity velocity) {
  assert(_debugCheckHasValidScrollPosition());
  _thumbDragging = false;
  final Axis? direction = getScrollbarDirection();
  if (direction == null) {
    return;
  }
  _maybeStartFadeoutTimer();
  _startDragScrollbarAxisOffset = null;
  _lastDragUpdateOffset = null;
  _startDragThumbOffset = null;
  _cachedController = null;
}