copyWith method

  1. @useResult
FSidebarItemMotion copyWith({
  1. Duration? expandDuration,
  2. Duration? collapseDuration,
  3. Curve? expandCurve,
  4. Curve? collapseCurve,
  5. Curve? fadeInCurve,
  6. Curve? fadeOutCurve,
  7. Curve? iconExpandCurve,
  8. Curve? iconCollapseCurve,
  9. Animatable<double>? revealTween,
  10. Animatable<double>? fadeTween,
  11. Animatable<double>? iconTween,
})

Returns a copy of this FSidebarItemMotion with the given properties replaced.

Parameters

Implementation

@useResult
FSidebarItemMotion copyWith({
  Duration? expandDuration,
  Duration? collapseDuration,
  Curve? expandCurve,
  Curve? collapseCurve,
  Curve? fadeInCurve,
  Curve? fadeOutCurve,
  Curve? iconExpandCurve,
  Curve? iconCollapseCurve,
  Animatable<double>? revealTween,
  Animatable<double>? fadeTween,
  Animatable<double>? iconTween,
}) => FSidebarItemMotion(
  expandDuration: expandDuration ?? this.expandDuration,
  collapseDuration: collapseDuration ?? this.collapseDuration,
  expandCurve: expandCurve ?? this.expandCurve,
  collapseCurve: collapseCurve ?? this.collapseCurve,
  fadeInCurve: fadeInCurve ?? this.fadeInCurve,
  fadeOutCurve: fadeOutCurve ?? this.fadeOutCurve,
  iconExpandCurve: iconExpandCurve ?? this.iconExpandCurve,
  iconCollapseCurve: iconCollapseCurve ?? this.iconCollapseCurve,
  revealTween: revealTween ?? this.revealTween,
  fadeTween: fadeTween ?? this.fadeTween,
  iconTween: iconTween ?? this.iconTween,
);