Rect toRect()

Returns a rect of the same size as this box.

Source

Rect toRect() => new Rect.fromLTRB(left, top, right, bottom);