SPath.fromPoints constructor
Conveniently construct from a List of Point
Implementation
SPath.fromPoints(List<Point<double>> points) {
if (points.isEmpty) throw Exception("Must supply at least one point");
currentPoint = points.first;
for (var i = 1; i < points.length; i++) {
line(to: points[i]);
}
}