copyWith method
- @useResult
- Duration? expandDuration,
- Duration? collapseDuration,
- Curve? expandCurve,
- Curve? collapseCurve,
- Curve? iconExpandCurve,
- Curve? iconCollapseCurve,
- Animatable<double> ? revealTween,
- Animatable<double> ? iconTween,
Returns a copy of this FAccordionMotion with the given properties replaced.
Parameters
- FAccordionMotion.expandDuration - The expand animation's duration.
- FAccordionMotion.collapseDuration - The collapse animation's duration.
- FAccordionMotion.expandCurve - The expand animation's curve.
- FAccordionMotion.collapseCurve - The collapse animation's curve.
- FAccordionMotion.iconExpandCurve - The icon's animation curve when expanding.
- FAccordionMotion.iconCollapseCurve - The icon's animation curve when collapsing.
- FAccordionMotion.revealTween - The reveal animation's tween.
- FAccordionMotion.iconTween - The icon animation's tween.
Implementation
@useResult
FAccordionMotion copyWith({
  Duration? expandDuration,
  Duration? collapseDuration,
  Curve? expandCurve,
  Curve? collapseCurve,
  Curve? iconExpandCurve,
  Curve? iconCollapseCurve,
  Animatable<double>? revealTween,
  Animatable<double>? iconTween,
}) => FAccordionMotion(
  expandDuration: expandDuration ?? this.expandDuration,
  collapseDuration: collapseDuration ?? this.collapseDuration,
  expandCurve: expandCurve ?? this.expandCurve,
  collapseCurve: collapseCurve ?? this.collapseCurve,
  iconExpandCurve: iconExpandCurve ?? this.iconExpandCurve,
  iconCollapseCurve: iconCollapseCurve ?? this.iconCollapseCurve,
  revealTween: revealTween ?? this.revealTween,
  iconTween: iconTween ?? this.iconTween,
);