copyWith method
NodeAnimation
copyWith({
- bool? enabled,
- int? duration,
- AnimationRepeat? repeat,
- bool? autoplay,
- String? playKey,
- double? phase,
- List<
AnimationTrack> ? tracks, - double? previewAt,
- bool? paused,
Implementation
NodeAnimation copyWith({
bool? enabled,
int? duration,
AnimationRepeat? repeat,
bool? autoplay,
String? playKey,
double? phase,
List<AnimationTrack>? tracks,
double? previewAt,
bool? paused,
}) =>
NodeAnimation(
id: id,
preset: preset,
params: params,
enabled: enabled ?? this.enabled,
duration: duration ?? this.duration,
reverseDuration: reverseDuration,
delay: delay,
curve: curve,
repeat: repeat ?? this.repeat,
autoplay: autoplay ?? this.autoplay,
playKey: playKey ?? this.playKey,
paused: paused ?? this.paused,
phase: phase ?? this.phase,
spring: spring,
progress: progress,
alignment: alignment,
tracks: tracks ?? this.tracks,
previewAt: previewAt ?? this.previewAt,
ramp: ramp,
visibleFraction: visibleFraction,
after: after,
);