VsScrollbar constructor
const
VsScrollbar({
- Key? key,
- required Widget child,
- ScrollController? controller,
- VsScrollbarStyle style = _kScrollbarStyle,
- Duration? scrollbarFadeDuration,
- Duration? scrollbarTimeToFade,
- bool? isAlwaysShown,
- bool? showTrackOnHover,
- ScrollNotificationPredicate? notificationPredicate,
Creates a material design VsScrollbar that by default will connect to the
closest Scrollable descendant of child
.
The child
should be a source of ScrollNotification notifications,
typically a Scrollable widget.
If the controller
is null, the default behavior is to
enable VsScrollbar dragging using the PrimaryScrollController.
Implementation
const VsScrollbar({
Key? key,
required this.child,
this.controller,
this.style = _kScrollbarStyle,
this.scrollbarFadeDuration,
this.scrollbarTimeToFade,
this.isAlwaysShown,
this.showTrackOnHover,
this.notificationPredicate,
}) : super(key: key);