translate method
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;
}
}