InfinitePageView constructor
InfinitePageView({
- required int count,
- required Widget buildItem(
- BuildContext context,
- int index
- double viewportFraction = 1.0,
- bool padEnds = true,
- void onPageChange(
- int pageIdnex
- void onControllerListener(
- PageController controller
- bool autoScroll = false,
- bool cycleRolling = true,
- int autoPlaySeconds = delayPlaySeconds,
- Duration animateDuration = kTabScrollDuration,
- int initIndex = 0,
- 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");