CubicCurve.fromList constructor

CubicCurve.fromList(
  1. List<List<double>> list
)

Implementation

factory CubicCurve.fromList(List<List<double>> list) {
  assert(list.length == 4, 'list should be no more or no less then the length of 4');
  return CubicCurve(
    Point(list[0][0], list[0][1]),
    Point(list[1][0], list[1][1]),
    Point(list[2][0], list[2][1]),
    Point(list[3][0], list[3][1]),
  );
}