ScrollPageController constructor

ScrollPageController({
  1. int initialPage = 0,
  2. bool keepPage = true,
  3. double viewportFraction = 1.0,
})

Implementation

ScrollPageController({
  this.initialPage = 0,
  this.keepPage = true,
  this.viewportFraction = 1.0,
})  : assert(viewportFraction > 0.0),
      controller = PageController(
        initialPage: getInitialPage(initialPage),
        keepPage: keepPage,
        viewportFraction: viewportFraction,
      );