showScrollbar property Null safety

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 RawScrollbar.isAlwaysShown or RawScrollbar.thumbVisibility is null.

See also:

Implementation

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