renderPosition method

void renderPosition(
  1. Canvas canvas,
  2. Vector2 position,
  3. Vector2 size
)

Renders the svg on the canvas on the given position using the dimensions provided by size.

Implementation

void renderPosition(
  Canvas canvas,
  Vector2 position,
  Vector2 size,
) {
  canvas.renderAt(position, (c) => render(c, size));
}