render method

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

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