ExtendedPageController constructor

ExtendedPageController({
  1. int initialPage = 0,
  2. bool keepPage = true,
  3. double viewportFraction = 1.0,
  4. double pageSpacing = 0.0,
  5. bool shouldIgnorePointerWhenScrolling = false,
})

Creates a page controller.

The initialPage, keepPage, and viewportFraction arguments must not be null.

Implementation

ExtendedPageController({
  this.initialPage = 0,
  this.keepPage = true,
  this.viewportFraction = 1.0,
  this.pageSpacing = 0.0,
  this.shouldIgnorePointerWhenScrolling = false,
})  : assert(initialPage != null),
      assert(keepPage != null),
      assert(viewportFraction != null),
      assert(viewportFraction > 0.0);