bezierVertex method

void bezierVertex(
  1. dynamic c1x,
  2. dynamic c1y,
  3. dynamic c2x,
  4. dynamic c2y,
  5. dynamic x2,
  6. dynamic y2,
)

Implementation

void bezierVertex(c1x, c1y, c2x, c2y, x2, y2) {
  if (_shape == null) {
    throw Exception("You need to call beginShape() before calling bezierVertex().");
  }
  if (_shape!.mode != null) {
    throw Exception(
        "You can't add a bezier vertex for a custom shape when using a non-default mode: ${_shape!.mode}");
  }

  _shape!.vertices.add(_BezierVertex(c1x, c1y, c2x, c2y, x2, y2));
}