toRect method Null safety
Returns a rect of the same size as this box.
Implementation
Rect toRect() => Rect.fromLTRB(left, top, right, bottom);
Returns a rect of the same size as this box.
Rect toRect() => Rect.fromLTRB(left, top, right, bottom);