handleThumbPressEnd method Null safety

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

Handler called when a long press has ended.

Implementation

@protected
@mustCallSuper
void handleThumbPressEnd(Offset localPosition, Velocity velocity) {
  assert(_debugCheckHasValidScrollPosition());
  final Axis? direction = getScrollbarDirection();
  if (direction == null) {
    return;
  }
  _maybeStartFadeoutTimer();
  _dragScrollbarAxisOffset = null;
  _currentController = null;
}