Use .replace from previousRow
void update({required int indexInNew, required Row<E> previousRow}) { final slotIndex = indexInNew + 1; slots[slotIndex] = previousRow.slots[slotIndex - 1]; }