replaceWith method

void replaceWith(
  1. int oldItemIndex,
  2. E item
)

Replaces the element at oldItemIndex with item.

Implementation

void replaceWith(int oldItemIndex, E item) {
  _items.value[oldItemIndex] = item;
  _makeActionOnDataChanging();
}