isSatisfiedBy method

bool isSatisfiedBy(
  1. Size size
)

Whether the given size satisfies the constraints.

Implementation

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