reindex method

void reindex()

Implementation

void reindex() {
  var i = 0;
  for (var row in rows!) {
    row.index = i;
    i++;
  }
}