toRect method

Rect toRect ()

Returns a rect of the same size as this box.

Implementation

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