only method

bool only (
  1. double value,
  2. List<double> preakpoints
)

only

Implementation

static bool only(double value, List<double> preakpoints) {
  for (double p in preakpoints) {
    if (p == Breakpoints.xs && Breakpoints.isXs(value)) return true;
    if (p == Breakpoints.sm && Breakpoints.isSm(value)) return true;
    if (p == Breakpoints.md && Breakpoints.isMd(value)) return true;
    if (p == Breakpoints.lg && Breakpoints.isLg(value)) return true;
    if (p == Breakpoints.xl && Breakpoints.isXl(value)) return true;
  }
  return false;
}