render method

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

Renders this component on the provided Canvas c.

Implementation

@override
void render(Canvas canvas) {
  prepareCanvas(canvas);
  sprite.render(canvas,
      width: width, height: height, overridePaint: overridePaint);
}