Scrollbar constructor
const
Scrollbar({
- Key? key,
- required Widget child,
- ScrollController? controller,
- bool isAlwaysShown = true,
- ScrollbarThemeData? style,
Creates a fluent-styled scrollbar that wraps the given child
.
The child
, or a descendant of the child
, should be a
source of ScrollNotification notifications, typically a
Scrollable widget.
The child
, thickness, thumbColor, isAlwaysShown,
fadeDuration, and timeToFade arguments must not be null.
Implementation
const Scrollbar({
Key? key,
required Widget child,
this.controller,
this.isAlwaysShown = true,
this.style,
}) : super(key: key, child: child);