Creates an interval curve.
The start and end arguments must not be null.
start
const Interval(this.begin, this.end, { this.curve: Curves.linear });