paint method

  1. @override
void paint(
  1. Canvas canvas
)
override

Paints this figure.

This method should only be override by subclass.

Implementation

@override
void paint(Canvas canvas) {
  canvas.save();

  canvas.translate(axis.dx, axis.dy);
  canvas.rotate(rotation);
  canvas.translate(-axis.dx, -axis.dy);

  super.paint(canvas);

  canvas.restore();
}