DottedPageView.builder constructor

DottedPageView.builder({
  1. Color dotColor = Colors.white38,
  2. Color dotActiveColor = Colors.white,
  3. Axis scrollDirection = Axis.horizontal,
  4. bool autoPlay = true,
  5. bool reverse = false,
  6. PageController? controller,
  7. ScrollPhysics? physics,
  8. bool pageSnapping = true,
  9. void onPageChanged(
    1. int
    )?,
  10. IndexedWidgetBuilder? itemBuilder,
  11. int itemCount = 0,
  12. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  13. bool allowImplicitScrolling = false,
  14. String? restorationId,
  15. Clip clipBehavior = Clip.hardEdge,
  16. Size? size,
  17. Key? key,
})

Implementation

DottedPageView.builder({
  this.dotColor = Colors.white38,
  this.dotActiveColor = Colors.white,
  this.scrollDirection = Axis.horizontal,
  this.autoPlay = true,
  this.reverse = false,
  PageController? controller,
  this.physics,
  this.pageSnapping = true,
  this.onPageChanged,
  this.itemBuilder,
  this.itemCount = 0,
  this.dragStartBehavior = DragStartBehavior.start,
  this.allowImplicitScrolling = false,
  this.restorationId,
  this.clipBehavior = Clip.hardEdge,
  this.size,
  Key? key,
})  : _key = key,
      controller = controller ?? PageController(),
      super(key: null);