translate method

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

Translates the bounds by an offset.

Implementation

Bounds translate(double dx, double dy) {
  return Bounds(
    x: x + dx,
    y: y + dy,
    width: width,
    height: height,
  );
}