MacosScrollbar constructor

const MacosScrollbar({
  1. Key? key,
  2. required Widget child,
  3. ScrollController? controller,
  4. bool? thumbVisibility,
  5. double? thickness,
  6. double? thicknessWhileHovering,
  7. Radius? radius,
  8. ScrollNotificationPredicate? notificationPredicate,
  9. 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,
});