offset method

Rect offset(
  1. int x,
  2. int y
)

Implementation

Rect offset(int x, int y) => Rect(this.x + x, this.y + y, width, height);