columns static method
int
columns(
- BuildContext context, {
- int mobile = 1,
- int? tablet,
- int? desktop,
- 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,
);
}