withOffset method

Rect withOffset(
  1. Offset offset
)

Returns a rectangle with a new offset without modifying its size.

Implementation

Rect withOffset(Offset offset) {
  return Rect.fromLTWH(offset.x, offset.y, width, height);
}