MacosScrollbar constructor
const
MacosScrollbar({
- Key? key,
- required Widget child,
- ScrollController? controller,
- bool? thumbVisibility,
- double? thickness,
- double? thicknessWhileHovering,
- Radius? radius,
- ScrollNotificationPredicate? notificationPredicate,
- ScrollbarOrientation? scrollbarOrientation,
Creates a macOS-style scrollbar 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 scrollbar dragging using the PrimaryScrollController.
Implementation
const MacosScrollbar({
super.key,
required this.child,
this.controller,
this.thumbVisibility,
this.thickness,
this.thicknessWhileHovering,
this.radius,
this.notificationPredicate,
this.scrollbarOrientation,
});