columns property

int columns

Returns the recommended number of grid layout columns.

Implementation

int get columns {
  if (_width < 600.0) {
    return 4;
  }

  if (_width < 840.0) {
    return 8;
  }

  return 12;
}