PreloadPageController constructor
PreloadPageController({})
Creates a page controller.
The initialPage
, keepPage
, and viewportFraction
arguments must not be null.
Implementation
PreloadPageController({
this.initialPage = 0,
this.keepPage = true,
this.viewportFraction = 1.0,
}) : assert(viewportFraction > 0.0, 'viewportFraction not zero');