ScrollSnapEffect constructor
const
ScrollSnapEffect({
- Key? key,
- required double itemSize,
- required int itemCount,
- required IndexedWidgetBuilder itemBuilder,
- Axis scrollDirection = Axis.horizontal,
- ScrollController? controller,
- ScrollPhysics? physics,
- EdgeInsetsGeometry? padding,
- Clip clipBehavior = Clip.hardEdge,
- ValueChanged<
int> ? onChanged, - Curve? curve,
- 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);