render method
Implementation
@override
void render(Canvas canvas) {
super.render(canvas);
_animation?.render(
canvas,
size: size,
overridePaint: paint,
);
_sprite?.render(
canvas,
size: size,
overridePaint: paint,
);
if (color != null) {
canvas.drawRect(toRect(), paint..color = color!);
}
}