paint method
Paints the figure onto canvas, mapping the 100-by-100 viewBox onto the
largest square centered in size. Draw order matches the reference
renderer: backdrop, petals, extra outlines, core body, then eyes.
Implementation
void paint(ui.Canvas canvas, ui.Size size) {
final double side = size.width < size.height ? size.width : size.height;
if (side <= 0) return;
canvas.save();
canvas.translate((size.width - side) / 2, (size.height - side) / 2);
canvas.scale(side / 100);
_paintViewed(canvas);
canvas.restore();
}