copyWith method

ChartAnimationOptions copyWith({
  1. Duration? duration,
  2. Curve? curve,
})

Implementation

ChartAnimationOptions copyWith({Duration? duration, Curve? curve}) {
  return ChartAnimationOptions(
    duration: duration ?? this.duration,
    curve: curve ?? this.curve,
  );
}