Rectangle.fromRect constructor

Rectangle.fromRect(
  1. Rect rect
)

Constructs a Rectangle from a Rect.

Implementation

factory Rectangle.fromRect(Rect rect) =>
    Rectangle.fromLTRB(rect.left, rect.top, rect.right, rect.bottom);