Rotate the polyline by deg degrees
deg
Polyline rotate(double deg) { return Polyline(points.map((p) => p.rotate(deg)).toList()); }