copyWith method
Returns a copy of this FDialogRouteMotion with the given properties replaced.
Parameters
- FDialogRouteMotion.entranceDuration - The amount of time the entrance animation takes.
- FDialogRouteMotion.exitDuration - The amount of time the exit animation takes.
- FDialogRouteMotion.barrierCurve - The curve used for the barrier's entrance and exit.
Implementation
@useResult
FDialogRouteMotion copyWith({Duration? entranceDuration, Duration? exitDuration, Curve? barrierCurve}) =>
FDialogRouteMotion(
entranceDuration: entranceDuration ?? this.entranceDuration,
exitDuration: exitDuration ?? this.exitDuration,
barrierCurve: barrierCurve ?? this.barrierCurve,
);