handleThumbPressUpdate method Null safety

  1. @protected
  2. @mustCallSuper
void handleThumbPressUpdate(
  1. Offset localPosition
)
mustCallSuper">@mustCallSuperprotected">@protected

Handler called when a currently active long press gesture moves.

Updates the position of the child scrollable.

Implementation

@protected
@mustCallSuper
void handleThumbPressUpdate(Offset localPosition) {
  assert(_debugCheckHasValidScrollPosition());
  final Axis? direction = getScrollbarDirection();
  if (direction == null) {
    return;
  }
  _updateScrollPosition(localPosition);
  _dragScrollbarAxisOffset = localPosition;
}