Cubic constructor Null safety

const Cubic(
  1. double a,
  2. double b,
  3. double c,
  4. double d

Creates a cubic curve.

Rather than creating a new instance, consider using one of the common cubic curves in Curves.

The a, b, c, and d arguments must not be null.


const Cubic(this.a, this.b, this.c, this.d)
  : assert(a != null),
    assert(b != null),
    assert(c != null),
    assert(d != null);