render method

void render(
  1. Canvas canvas,
  2. Vector2 position, {
  3. Anchor anchor = Anchor.topLeft,
})

Implementation

void render(
  Canvas canvas,
  Vector2 position, {
  Anchor anchor = Anchor.topLeft,
}) {
  final box = metrics;
  translate(
    position.x - box.width * anchor.x,
    position.y - box.height * anchor.y - box.top,
  );
  draw(canvas);
}