CupertinoScrollbar constructor
- Key? key,
- required Widget child,
- ScrollController? controller,
- bool? thumbVisibility,
- double thickness = defaultThickness,
- double thicknessWhileDragging = defaultThicknessWhileDragging,
- Radius radius = defaultRadius,
- Radius radiusWhileDragging = defaultRadiusWhileDragging,
- ScrollNotificationPredicate? notificationPredicate,
- ScrollbarOrientation? scrollbarOrientation,
Creates an iOS style scrollbar that wraps the given child.
The child should be a source of ScrollNotification notifications, typically a Scrollable widget.
Implementation
const CupertinoScrollbar({
super.key,
required super.child,
super.controller,
bool? thumbVisibility,
double super.thickness = defaultThickness,
this.thicknessWhileDragging = defaultThicknessWhileDragging,
Radius super.radius = defaultRadius,
this.radiusWhileDragging = defaultRadiusWhileDragging,
ScrollNotificationPredicate? notificationPredicate,
super.scrollbarOrientation,
}) : assert(thickness < double.infinity),
assert(thicknessWhileDragging < double.infinity),
super(
thumbVisibility: thumbVisibility ?? false,
fadeDuration: _kScrollbarFadeDuration,
timeToFade: _kScrollbarTimeToFade,
pressDuration: const Duration(milliseconds: 100),
notificationPredicate: notificationPredicate ?? defaultScrollNotificationPredicate,
);