Cubic constructor Null safety
Implementation
const factory Cubic(
final double x1, final double y1, final double x2, final double y2) =
_$Cubic;
const factory Cubic(
final double x1, final double y1, final double x2, final double y2) =
_$Cubic;