quadraticVertex method
void
quadraticVertex(
- dynamic cx,
- dynamic cy,
- dynamic x2,
- dynamic y2,
Implementation
void quadraticVertex(cx, cy, x2, y2) {
if (_shape == null) {
throw Exception("You need to call beginShape() before calling quadraticVertex().");
}
if (_shape!.mode != null) {
throw Exception(
"You can't add a quadratic vertex for a custom shape when using a non-default mode: ${_shape!.mode}");
}
_shape!.vertices.add(_QuadraticVertex(cx, cy, x2, y2));
}