isSatisfiedBy method

bool isSatisfiedBy (Size size)

Whether the given size satisfies the constraints.

Implementation

bool isSatisfiedBy(Size size) {
  assert(debugAssertIsValid());
  return (minWidth <= size.width) && (size.width <= maxWidth) &&
         (minHeight <= size.height) && (size.height <= maxHeight);
}