toRect method Null safety

Rect toRect()

Returns a rect of the same size as this box.

Implementation

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