EasingViewportTransition constructor

const EasingViewportTransition(
  1. {Cubic curve = Curves.easeInOut,
  2. required Duration duration}
)

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.

Implementation

const EasingViewportTransition({
  this.curve = Curves.easeInOut,
  required this.duration,
}) : super();