drawRotated method

void drawRotated(
  1. Canvas canvas,
  2. Path p,
  3. Offset position,
  4. double rotation,
)

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();
}