Interval constructor Null safety

const Interval(
  1. double begin,
  2. double end,
  3. {Curve curve}
)

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