Cubic constructor

const Cubic(double a, double b, double c, 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.

Implementation

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