Scale the polyline
Polyline scale(double factor) { return Polyline(points.map((p) => p.scale(factor)).toList()); }