copyWith method
AnimationUnit
copyWith({
- Animatable? tween,
- Duration? from,
- Duration? to,
- String? tag,
- 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,
);
}