InfinitePageView constructor

InfinitePageView({
  1. required int count,
  2. required Widget buildItem(
    1. BuildContext context,
    2. int index
    ),
  3. double viewportFraction = 1.0,
  4. bool padEnds = true,
  5. void onPageChange(
    1. int pageIdnex
    )?,
  6. void onControllerListener(
    1. PageController controller
    )?,
  7. bool autoScroll = false,
  8. bool cycleRolling = true,
  9. int autoPlaySeconds = delayPlaySeconds,
  10. Duration animateDuration = kTabScrollDuration,
  11. int initIndex = 0,
  12. int countMultiple = 1,
})

Implementation

InfinitePageView({
  required this.count,
  required this.buildItem,
  this.viewportFraction = 1.0,
  this.padEnds = true,
  this.onPageChange,
  this.onControllerListener,
  this.autoScroll = false,
  this.cycleRolling = true,
  this.autoPlaySeconds = delayPlaySeconds,
  this.animateDuration = kTabScrollDuration,
  this.initIndex = 0,
  this.countMultiple = 1,
})  : assert(count > 0, "count >0 "),
      assert(buildItem != null, "buildItem can't be null");