Path constructor
Path([
- List<
Vector2> ? points
points -- (optional) array of Vector2.
Creates a Path from the points. The first point defines the offset, then
successive points are added to the curves array as
LineCurves.
If no points are specified, an empty path is created and the currentPoint is set to the origin.
Implementation
Path([List<Vector2>? points]) : super() {
if (points != null) {
setFromPoints(points);
}
}