splineThru method
points - An array of Vector2
Connects a new SplineCurve onto the path.
Implementation
Path splineThru(List<Vector2> pts) {
final npts = [currentPoint.clone()];
npts.addAll(pts);
final curve = SplineCurve(npts);
curves.add(curve);
currentPoint.setFrom(pts[pts.length - 1]);
return this;
}