matches method

bool matches(
  1. Size size
)

Checks whether the given size matches this breakpoint.

Returns true if the width of the size is between minWidth and maxWidth, inclusive.

Implementation

bool matches(Size size) {
  return size.width >= minWidth && size.width <= maxWidth;
}