MySwiper constructor
const
MySwiper({
- Key? key,
- required IndexedWidgetBuilder itemBuilder,
- required int itemCount,
- Object? indicatorLayout,
- Object? transformer,
- bool autoplay = false,
- int autoplayDelay = _kMySwiperDefaultAutoplayDelayMs,
- bool autoplayDisableOnInteraction = true,
- int duration = _kMySwiperDefaultAutoplayDurationMs,
- ValueChanged<
int> ? onIndexChanged, - int? index,
- MySwiperOnTap? onTap,
- Object? control,
- bool loop = true,
- Curve curve = Curves.ease,
- Axis scrollDirection = Axis.horizontal,
- Object? pagination,
- List<
Object?> ? plugins, - ScrollPhysics? physics,
- Object? controller,
- Object? customLayoutOption,
- double? containerHeight,
- double? containerWidth,
- double viewportFraction = 1.0,
- double itemHeight = double.infinity,
- double itemWidth = double.infinity,
- bool outer = false,
- double? scale,
- double? fade,
- bool reverse = false,
- 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,
});