copyWith method
SubZeroCarouselConfig
copyWith(
{ - bool? showIndicators,
- bool? showNavigationArrows,
- bool? enableAutoPlay,
- Duration? autoPlayInterval,
- Duration? animationDuration,
- Curve? animationCurve,
- bool? enableInfiniteScroll,
- double? viewportFraction,
- double? height,
- double? aspectRatio,
- EdgeInsets? padding,
- double? itemGap,
})
Implementation
SubZeroCarouselConfig copyWith({
bool? showIndicators,
bool? showNavigationArrows,
bool? enableAutoPlay,
Duration? autoPlayInterval,
Duration? animationDuration,
Curve? animationCurve,
bool? enableInfiniteScroll,
double? viewportFraction,
double? height,
double? aspectRatio,
EdgeInsets? padding,
double? itemGap,
}) {
return SubZeroCarouselConfig(
showIndicators: showIndicators ?? this.showIndicators,
showNavigationArrows: showNavigationArrows ?? this.showNavigationArrows,
enableAutoPlay: enableAutoPlay ?? this.enableAutoPlay,
autoPlayInterval: autoPlayInterval ?? this.autoPlayInterval,
animationDuration: animationDuration ?? this.animationDuration,
animationCurve: animationCurve ?? this.animationCurve,
enableInfiniteScroll: enableInfiniteScroll ?? this.enableInfiniteScroll,
viewportFraction: viewportFraction ?? this.viewportFraction,
height: height ?? this.height,
aspectRatio: aspectRatio ?? this.aspectRatio,
padding: padding ?? this.padding,
itemGap: itemGap ?? this.itemGap,
);
}