VsScrollbar constructor

const VsScrollbar({
  1. Key? key,
  2. required Widget child,
  3. ScrollController? controller,
  4. VsScrollbarStyle style = _kScrollbarStyle,
  5. Duration? scrollbarFadeDuration,
  6. Duration? scrollbarTimeToFade,
  7. bool? isAlwaysShown,
  8. bool? showTrackOnHover,
  9. 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);