isBetween method

bool isBetween(
  1. double screenWidth,
  2. FSBreakpoint min,
  3. FSBreakpoint max
)

Check if screen width is between two breakpoints (inclusive)

Implementation

bool isBetween(double screenWidth, FSBreakpoint min, FSBreakpoint max) {
  return screenWidth >= value(min) && screenWidth < value(max);
}