copyWith method

AnimationUnit copyWith({
  1. Animatable? tween,
  2. Duration? from,
  3. Duration? to,
  4. String? tag,
  5. Curve? curve,
})

Implementation

AnimationUnit copyWith({
  Animatable? tween,
  Duration? from,
  Duration? to,
  String? tag,
  Curve? curve,
}) {
  return AnimationUnit(
    tween: tween ?? this.tween,
    from: from ?? this.from,
    to: to ?? this.to,
    tag: tag ?? this.tag,
    curve: curve ?? this.curve,
  );
}