enableGestures property

  1. @protected
bool get enableGestures

Overridable getter to indicate is gestures should be enabled on the scrollbar.

When false, the scrollbar will not respond to gesture or hover events, and will allow to click through it.

Subclasses can override this getter to make its value depend on an inherited theme.

Defaults to true when RawScrollbar.interactive is null.

See also:

Implementation

@protected
bool get enableGestures => widget.interactive ?? true;