setFromRect method

void setFromRect(
  1. Rect rect, {
  2. double minZ = 0.0,
  3. double maxZ = 0.0,
})

Set to rect in x/y, minZ..maxZ in z.

Implementation

void setFromRect(Rect rect, {double minZ = 0.0, double maxZ = 0.0}) =>
    setValues(rect.left, rect.top, minZ, rect.right, rect.bottom, maxZ);