isInfinite property

bool isInfinite

Whether any of the coordinates of this rectangle are equal to positive infinity.

Implementation

// included for consistency with Offset and Size
bool get isInfinite {
  return left >= double.infinity
      || top >= double.infinity
      || right >= double.infinity
      || bottom >= double.infinity;
}