rect method

Rect rect({
  1. Offset offset = Offset.zero,
})

Image rectangle with coordinates at (0,0) point.

Implementation

Rect rect({Offset offset = Offset.zero}) => offset & size;