copyWith method
- @useResult
- Duration? entranceDuration,
- Duration? exitDuration,
- Curve? expandCurve,
- Curve? collapseCurve,
- Curve? fadeInCurve,
- Curve? fadeOutCurve,
- Animatable<
double> ? scaleTween, - Animatable<
double> ? fadeTween,
Returns a copy of this FPopoverMotion with the given properties replaced.
Parameters
- FPopoverMotion.entranceDuration - The popover's entrance duration.
- FPopoverMotion.exitDuration - The popover's exit duration.
- FPopoverMotion.expandCurve - The curve used for the popover's expansion animation when entering.
- FPopoverMotion.collapseCurve - The curve used for the popover's collapse animation when exiting.
- FPopoverMotion.fadeInCurve - The curve used for the popover's fade-in animation when entering.
- FPopoverMotion.fadeOutCurve - The curve used for the popover's fade-out animation when exiting.
- FPopoverMotion.scaleTween - The popover's scale tween.
- FPopoverMotion.fadeTween - The popover's fade tween.
Implementation
@useResult
FPopoverMotion copyWith({
Duration? entranceDuration,
Duration? exitDuration,
Curve? expandCurve,
Curve? collapseCurve,
Curve? fadeInCurve,
Curve? fadeOutCurve,
Animatable<double>? scaleTween,
Animatable<double>? fadeTween,
}) => FPopoverMotion(
entranceDuration: entranceDuration ?? this.entranceDuration,
exitDuration: exitDuration ?? this.exitDuration,
expandCurve: expandCurve ?? this.expandCurve,
collapseCurve: collapseCurve ?? this.collapseCurve,
fadeInCurve: fadeInCurve ?? this.fadeInCurve,
fadeOutCurve: fadeOutCurve ?? this.fadeOutCurve,
scaleTween: scaleTween ?? this.scaleTween,
fadeTween: fadeTween ?? this.fadeTween,
);