CupertinoScrollbarModifier constructor

const CupertinoScrollbarModifier({
  1. Key? key,
  2. Widget? child,
  3. ScrollController? controller,
  4. ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
  5. double thickness = CupertinoScrollbar.defaultThickness,
  6. double thicknessWhileDragging = CupertinoScrollbar.defaultThicknessWhileDragging,
  7. Radius radius = CupertinoScrollbar.defaultRadius,
  8. Radius radiusWhileDragging = CupertinoScrollbar.defaultRadiusWhileDragging,
  9. ScrollbarOrientation? scrollbarOrientation,
  10. @Deprecated('Use thumbVisibility instead. ' 'This feature was deprecated after v2.9.0-1.0.pre.') bool? isAlwaysShown,
})

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 CupertinoScrollbarModifier({
  super.key,
  super.child,
  super.controller,
  super.notificationPredicate,
  double super.thickness = CupertinoScrollbar.defaultThickness,
  this.thicknessWhileDragging = CupertinoScrollbar.defaultThicknessWhileDragging,
  Radius super.radius = CupertinoScrollbar.defaultRadius,
  this.radiusWhileDragging = CupertinoScrollbar.defaultRadiusWhileDragging,
  super.scrollbarOrientation,
  @Deprecated(
    'Use thumbVisibility instead. '
    'This feature was deprecated after v2.9.0-1.0.pre.',
  )
      bool? isAlwaysShown,
});