EasingViewportTransition constructor
Creates an EasingViewportTransition with the specified curve
and duration
.
The curve
parameter defines the easing function to use for the animation, and the duration
specifies the length of time the animation should run.
curve
: The easing curve to use for the animation. Defaults to Curves.easeInOut.duration
: The duration of the animation.
Implementation
const EasingViewportTransition({
this.curve = Curves.easeInOut,
required this.duration,
}) : super();