handleThumbPressUpdate method Null safety
- 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;
}