handleThumbPress method

  1. @protected
  2. @mustCallSuper
void handleThumbPress()

Handler called when a press on the scrollbar thumb has been recognized.

Cancels the Timer associated with the fade animation of the scrollbar.

Implementation

@protected
@mustCallSuper
void handleThumbPress() {
  assert(_debugCheckHasValidScrollPosition());
  _cachedController = _effectiveScrollController;
  if (getScrollbarDirection() == null) {
    return;
  }
  _fadeoutTimer?.cancel();
  _thumbHold = _cachedController!.position.hold(_disposeThumbHold);
}