Modifier constructor

const Modifier({
  1. Axis scrollDirection = Axis.horizontal,
  2. int initialPage = 0,
  3. bool reverse = false,
  4. double viewportFraction = 1.0,
  5. PageController? controller,
  6. ScrollPhysics? physics,
  7. bool pageSnapping = true,
  8. ValueChanged<int>? onPageChanged,
  9. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  10. bool allowImplicitScrolling = false,
  11. String? restorationId,
  12. Clip clipBehavior = Clip.hardEdge,
  13. ScrollBehavior? scrollBehavior,
  14. 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,
});