ScrollSnapEffect constructor

const ScrollSnapEffect({
  1. Key? key,
  2. required double itemSize,
  3. required int itemCount,
  4. required IndexedWidgetBuilder itemBuilder,
  5. Axis scrollDirection = Axis.horizontal,
  6. ScrollController? controller,
  7. ScrollPhysics? physics,
  8. EdgeInsetsGeometry? padding,
  9. Clip clipBehavior = Clip.hardEdge,
  10. ValueChanged<int>? onChanged,
  11. Curve? curve,
  12. Duration? duration,
})

Implementation

const ScrollSnapEffect({
  Key? key,
  required this.itemSize,
  required this.itemCount,
  required this.itemBuilder,
  this.scrollDirection = Axis.horizontal,
  this.controller,
  this.physics,
  this.padding,
  this.clipBehavior = Clip.hardEdge,
  this.onChanged,
  this.curve,
  this.duration,
}) : super(key: key);