columns static method

int columns(
  1. BuildContext context, {
  2. int mobile = 1,
  3. int? tablet,
  4. int? desktop,
  5. int? desktopLarge,
})

Implementation

static int columns(BuildContext context, {
  int mobile = 1,
  int? tablet,
  int? desktop,
  int? desktopLarge,
}) {
  return value<int>(
    context,
    mobile: mobile,
    tablet: tablet ?? (mobile * 2),
    desktop: desktop ?? (tablet ?? mobile * 2) + 1,
    desktopLarge: desktopLarge ?? (desktop ?? (tablet ?? mobile * 2) + 1) + 1,
  );
}