ThreePointCubic constructor Null safety

const ThreePointCubic(
  1. Offset a1,
  2. Offset b1,
  3. Offset midpoint,
  4. Offset a2,
  5. Offset b2
)

Creates two cubic curves that share a common control point.

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

The arguments correspond to the control points for the two curves, including the midpoint, but do not include the two implied end points at (0,0) and (1,1), which are fixed.

Implementation

const ThreePointCubic(this.a1, this.b1, this.midpoint, this.a2, this.b2);