PageController constructor

PageController({
  1. int initialPage = 0,
  2. bool keepPage = true,
  3. double viewportFraction = 1.0,
  4. ScrollControllerCallback? onAttach,
  5. ScrollControllerCallback? onDetach,
})

Creates a page controller.

Implementation

PageController({
  this.initialPage = 0,
  this.keepPage = true,
  this.viewportFraction = 1.0,
  super.onAttach,
  super.onDetach,
}) : assert(viewportFraction > 0.0);