containsRect method

bool containsRect(
  1. Rect child
)

Returns whether the child is completely encapsulated by the Rect.

Implementation

bool containsRect(Rect child) => contains(child.topLeft) && contains(child.bottomRight);