copyWith method

CardCarouselState copyWith({
  1. double? verticalProgress,
  2. int? currentIndex,
  3. CardPhase? phase,
  4. bool? isDragging,
  5. bool? isAnimating,
  6. double? velocity,
  7. int? itemCount,
})

Implementation

CardCarouselState copyWith({
  double? verticalProgress,
  int? currentIndex,
  CardPhase? phase,
  bool? isDragging,
  bool? isAnimating,
  double? velocity,
  int? itemCount,
}) {
  return CardCarouselState(
    verticalProgress: verticalProgress ?? this.verticalProgress,
    currentIndex: currentIndex ?? this.currentIndex,
    phase: phase ?? this.phase,
    isDragging: isDragging ?? this.isDragging,
    isAnimating: isAnimating ?? this.isAnimating,
    velocity: velocity ?? this.velocity,
    itemCount: itemCount ?? this.itemCount,
  );
}