void reindex()

Source

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