Scrollbar constructor
const
Scrollbar({
- Key? key,
- required Widget child,
- ScrollController? controller,
- bool? thumbVisibility = true,
- ScrollbarThemeData? style,
- Duration fadeDuration = const Duration(milliseconds: 300),
- Duration timeToFade = const Duration(milliseconds: 600),
- bool? interactive,
- ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
- ScrollbarOrientation? scrollbarOrientation,
- Duration pressDuration = Duration.zero,
- 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,
});