handleThumbPress method Null safety

  1. @protected
  2. @mustCallSuper
void handleThumbPress()
mustCallSuper">@mustCallSuperprotected">@protected

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());
  if (getScrollbarDirection() == null) {
    return;
  }
  _fadeoutTimer?.cancel();
}