copyWith method
- @useResult
- 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,
Returns a copy of this FSidebarItemMotion with the given properties replaced.
Parameters
- FSidebarItemMotion.expandDuration - The expand animation's duration.
- FSidebarItemMotion.collapseDuration - The collapse animation's duration.
- FSidebarItemMotion.expandCurve - The expand animation's curve.
- FSidebarItemMotion.collapseCurve - The collapse animation's curve.
- FSidebarItemMotion.fadeInCurve - The fade-in animation's curve.
- FSidebarItemMotion.fadeOutCurve - The fade-out animation's curve.
- FSidebarItemMotion.iconExpandCurve - The icon's animation curve when expanding.
- FSidebarItemMotion.iconCollapseCurve - The icon's animation curve when collapsing.
- FSidebarItemMotion.revealTween - The reveal animation's tween.
- FSidebarItemMotion.fadeTween - The fade animation's tween.
- FSidebarItemMotion.iconTween - The icon animation's tween.
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,
);