frozenColumns static method

int frozenColumns(
  1. BuildContext context, {
  2. int requested = 0,
})

How many columns to freeze on the left on small screens.

Implementation

static int frozenColumns(BuildContext context, {int requested = 0}) {
  if (isMobile(context) && requested == 0) return 1;
  return requested;
}