copyRect function

Rect copyRect(
  1. Rect rect, {
  2. double? left,
  3. double? top,
  4. double? right,
  5. double? bottom,
})

Implementation

Rect copyRect(Rect rect, { double? left, double? top, double? right, double? bottom }) {
  return Rect.fromLTRB(left ?? rect.left, top ?? rect.top, right ?? rect.right, bottom ?? rect.bottom);
}