columnLength method

int columnLength()

Implementation

int columnLength() {
  if (itemCount % crossAxisCount == 0) {
    return itemCount ~/ crossAxisCount;
  } else {
    return (itemCount ~/ crossAxisCount) + 1;
  }
}