layoutRectFromRect function
Converts a Flutter Rect to a LayoutRect.
Creates a layout rectangle from the bounds of a Flutter Rect.
Implementation
LayoutRect layoutRectFromRect(Rect rect) {
return LayoutRect.fromLTRB(
rect.left,
rect.top,
rect.right,
rect.bottom,
);
}