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