copyWith method
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,
);
}