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) {
  _rrect = _rrect.shift(Offset(dx, dy));
}