copyWith method

NodeAnimation copyWith({
  1. bool? enabled,
  2. int? duration,
  3. AnimationRepeat? repeat,
  4. bool? autoplay,
  5. String? playKey,
  6. double? phase,
  7. List<AnimationTrack>? tracks,
  8. double? previewAt,
  9. 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,
    );