Interval constructor
Creates an interval curve.
The arguments must not be null.
Implementation
const Interval(this.begin, this.end, { this.curve = Curves.linear })
: assert(begin != null),
assert(end != null),
assert(curve != null);