ArnaScrollbar constructor

const ArnaScrollbar({
  1. Key? key,
  2. required Widget child,
  3. ScrollController? controller,
  4. bool thumbVisibility = false,
  5. ScrollNotificationPredicate? notificationPredicate,
  6. bool? interactive,
  7. ScrollbarOrientation? scrollbarOrientation,
  8. Color? thumbColor,
})

Creates an Arna-styled 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 ArnaScrollbar({
  super.key,
  required super.child,
  super.controller,
  bool super.thumbVisibility = false,
  ScrollNotificationPredicate? notificationPredicate,
  super.interactive,
  super.scrollbarOrientation,
  super.thumbColor,
}) : super(
        pressDuration: Duration.zero,
        notificationPredicate:
            notificationPredicate ?? defaultScrollNotificationPredicate,
      );