getRowCount method

int getRowCount()

Implementation

int getRowCount() {
  if (category.files.length % 4 != 0) {
    return category.files.length ~/ 4 + 1;
  } else {
    return category.files.length ~/ 4;
  }
}