translate method

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

Moves the element by (dx, dy) relative to its current location.

Implementation

@override
void translate(double dx, double dy) {
  _box.translate(dx, dy);
  for (var i = 0; i < transforms.length; i += 4) {
    transforms[i + 2] += dx;
    transforms[i + 3] += dy;
  }
}