translate method

void translate(
  1. double dx,
  2. double dy
)

Moves the LineMetrics box by the specified offset dx, dy leaving its width and height unmodified.

Implementation

void translate(double dx, double dy) {
  _left += dx;
  _baseline += dy;
}