ArnaScrollbar constructor
const
ArnaScrollbar({
- Key? key,
- required Widget child,
- ScrollController? controller,
- bool thumbVisibility = false,
- ScrollNotificationPredicate? notificationPredicate,
- bool? interactive,
- ScrollbarOrientation? scrollbarOrientation,
- 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,
);