drawRotated method
Implementation
void drawRotated(Canvas canvas, Path p, Offset position, double rotation) {
canvas.save();
canvas.translate(position.dx, position.dy);
canvas.rotate(rotation);
canvas.drawPath(p, _painter);
canvas.restore();
}