MySwiper constructor

const MySwiper({
  1. Key? key,
  2. required IndexedWidgetBuilder itemBuilder,
  3. required int itemCount,
  4. Object? indicatorLayout,
  5. Object? transformer,
  6. bool autoplay = false,
  7. int autoplayDelay = _kMySwiperDefaultAutoplayDelayMs,
  8. bool autoplayDisableOnInteraction = true,
  9. int duration = _kMySwiperDefaultAutoplayDurationMs,
  10. ValueChanged<int>? onIndexChanged,
  11. int? index,
  12. MySwiperOnTap? onTap,
  13. Object? control,
  14. bool loop = true,
  15. Curve curve = Curves.ease,
  16. Axis scrollDirection = Axis.horizontal,
  17. Object? pagination,
  18. List<Object?>? plugins,
  19. ScrollPhysics? physics,
  20. Object? controller,
  21. Object? customLayoutOption,
  22. double? containerHeight,
  23. double? containerWidth,
  24. double viewportFraction = 1.0,
  25. double itemHeight = double.infinity,
  26. double itemWidth = double.infinity,
  27. bool outer = false,
  28. double? scale,
  29. double? fade,
  30. bool reverse = false,
  31. Object? layout,
})

Implementation

const MySwiper({
  super.key,
  required this.itemBuilder,
  required this.itemCount,
  this.indicatorLayout,
  this.transformer,
  this.autoplay = false,
  this.autoplayDelay = _kMySwiperDefaultAutoplayDelayMs,
  this.autoplayDisableOnInteraction = true,
  this.duration = _kMySwiperDefaultAutoplayDurationMs,
  this.onIndexChanged,
  this.index,
  this.onTap,
  this.control,
  this.loop = true,
  this.curve = Curves.ease,
  this.scrollDirection = Axis.horizontal,
  this.pagination,
  this.plugins,
  this.physics,
  this.controller,
  this.customLayoutOption,
  this.containerHeight,
  this.containerWidth,
  this.viewportFraction = 1.0,
  this.itemHeight = double.infinity,
  this.itemWidth = double.infinity,
  this.outer = false,
  this.scale,
  this.fade,
  this.reverse = false,
  this.layout,
});