containsBounds method

bool containsBounds(
  1. Bounds other
)

Whether the bounds contain another bounds.

Implementation

bool containsBounds(Bounds other) {
  return other.left >= left &&
      other.right <= right &&
      other.top >= top &&
      other.bottom <= bottom;
}