showScrollbar property Null safety
protected">@protected
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:
- RawScrollbar.isAlwaysShown, which overrides the default behavior.
Implementation
@protected
bool get showScrollbar => widget.isAlwaysShown ?? widget.thumbVisibility ?? false;