IntervalDuration constructor

const IntervalDuration({
  1. Duration? start,
  2. Duration? end,
  3. required Duration duration,
  4. Curve? curve,
})

Creates a curve interval with a specific duration.

The IntervalDuration class is used to define a time interval for animations, specifying the start and end times as a fraction of the total animation duration.

This is useful for creating complex animations where different parts of the animation occur at different times.

Implementation

const IntervalDuration({
  this.start,
  this.end,
  required this.duration,
  this.curve,
});