drawObject method
Draws the arrow on the provided canvas
of size size
.
Implementation
@override
void drawObject(Canvas canvas, Size size) {
final drawingSize = this.size * scale;
canvas.drawOval(
Rect.fromCenter(
center: position,
width: drawingSize.width,
height: drawingSize.height),
paint);
}