containsOffset method

bool containsOffset(
  1. IntOffset offset
)

Checks if the given offset point is contained within this rectangle.

offset The offset point to check. Returns true if the point is inside the rectangle, false otherwise.

Implementation

bool containsOffset(final IntOffset offset) {
  return offset.x >= left &&
      offset.x < right &&
      offset.y >= top &&
      offset.y < bottom;
}