getColumns method

int getColumns(
  1. Breakpoint breakpoint
)

Implementation

int getColumns(Breakpoint breakpoint) {
  Breakpoints breakpoints = this.breakpoints ?? Breakpoints();
  switch (breakpoint) {
    case Breakpoint.xs:
      return breakpoints.colXs;
    case Breakpoint.sm:
      return breakpoints.colSm;
    case Breakpoint.md:
      return breakpoints.colMd;
    case Breakpoint.lg:
      return breakpoints.colLg;
    case Breakpoint.xl:
      return breakpoints.colXl;
    case Breakpoint.xxl:
      return breakpoints.colXxl;
    default:
      12;
  }
  return 12;
}