contains method

bool contains(
  1. PdfBox other
)

Whether other is entirely contained in this box.

Implementation

bool contains(PdfBox other) =>
    other.left >= left &&
    other.bottom >= bottom &&
    other.right <= right &&
    other.top <= top;