Returns whether the child is completely encapsulated by the Rect.
child
bool containsRect(Rect child) => contains(child.topLeft) && contains(child.bottomRight);