showScrollbar property

  1. @protected
bool showScrollbar

Overridable getter to indicate that the scrollbar should be visible, even when a scroll is not underway.

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

Defaults to false when MaterialRawScrollbar.isAlwaysShown or MaterialRawScrollbar.thumbVisibility is null.

See also:

Implementation

@protected
bool get showScrollbar =>
    widget.isAlwaysShown ?? widget.thumbVisibility ?? false;