render method

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

Should render this Particle to given Canvas.

Default behavior is empty, so that it's not required to override this in a Particle that renders nothing and serve as a behavior container.

Implementation

@override
void render(Canvas canvas) {
  sprite.render(
    canvas,
    position: position,
    size: size,
    anchor: anchor,
    overridePaint: overridePaint,
  );
}