Modifier constructor
const
Modifier({
- Axis scrollDirection = Axis.horizontal,
- int initialPage = 0,
- bool reverse = false,
- double viewportFraction = 1.0,
- PageController? controller,
- ScrollPhysics? physics,
- bool pageSnapping = true,
- ValueChanged<
int> ? onPageChanged, - DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- bool allowImplicitScrolling = false,
- String? restorationId,
- Clip clipBehavior = Clip.hardEdge,
- ScrollBehavior? scrollBehavior,
- bool padEnds = true,
Implementation
const Modifier({
this.scrollDirection = Axis.horizontal,
this.initialPage = 0,
this.reverse = false,
this.viewportFraction = 1.0,
this.controller,
this.physics,
this.pageSnapping = true,
this.onPageChanged,
this.dragStartBehavior = DragStartBehavior.start,
this.allowImplicitScrolling = false,
this.restorationId,
this.clipBehavior = Clip.hardEdge,
this.scrollBehavior,
this.padEnds = true,
});