Scrollbar constructor

const Scrollbar({
  1. Key? key,
  2. required Widget child,
  3. ScrollController? controller,
  4. bool? thumbVisibility = true,
  5. ScrollbarThemeData? style,
  6. Duration fadeDuration = const Duration(milliseconds: 300),
  7. Duration timeToFade = const Duration(milliseconds: 600),
  8. bool? interactive,
  9. ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
  10. ScrollbarOrientation? scrollbarOrientation,
  11. Duration pressDuration = Duration.zero,
  12. double? minOverscrollLength,
})

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, fadeDuration, pressDuration, and timeToFade arguments must not be null.

Implementation

const Scrollbar({
  super.key,
  required super.child,
  super.controller,
  super.thumbVisibility = true,
  this.style,
  super.fadeDuration = const Duration(milliseconds: 300),
  super.timeToFade = const Duration(milliseconds: 600),
  super.interactive,
  super.notificationPredicate,
  super.scrollbarOrientation,
  super.pressDuration,
  super.minOverscrollLength,
});