getBreakpointIndex static method

int getBreakpointIndex(
  1. Breakpoint breakpoint
)

Implementation

static int getBreakpointIndex(Breakpoint breakpoint) {
  switch (breakpoint) {
    case Breakpoint.xs:
      return 0;
    case Breakpoint.sm:
      return 1;
    case Breakpoint.md:
      return 2;
    case Breakpoint.lg:
      return 3;
    case Breakpoint.xl:
      return 4;
    case Breakpoint.xxl:
      return 5;
    default:
      return 0;
  }
}