copyWith method

SubZeroCarouselConfig copyWith({
  1. bool? showIndicators,
  2. bool? showNavigationArrows,
  3. bool? enableAutoPlay,
  4. Duration? autoPlayInterval,
  5. Duration? animationDuration,
  6. Curve? animationCurve,
  7. bool? enableInfiniteScroll,
  8. double? viewportFraction,
  9. double? height,
  10. double? aspectRatio,
  11. EdgeInsets? padding,
  12. 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,
  );
}