gridIndicies static method
Implementation
@visibleForTesting
static List<int> gridIndicies(int index, int columns, int count) {
final rows = _rows(columns, count);
final maxItemsForGridSize = columns * rows;
final yIndex = (index / maxItemsForGridSize * rows).floor();
final xIndex = index % columns;
return [xIndex, yIndex];
}