containsRect method

bool containsRect(
  1. Rectangle other
)

Returns whether other is entirely contained within this rectangle.

Implementation

bool containsRect(Rectangle other) =>
    other.minX >= minX &&
    other.minY >= minY &&
    other.maxX <= maxX &&
    other.maxY <= maxY;