Interval constructor

const Interval(double begin, double end, { Curve curve: Curves.linear })

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);