replaceAt method
- int index,
- E item
Replace item at index.
Implementation
void replaceAt(int index, E item) {
final newList = List<E>.from(val);
newList[index] = item;
emit(newList);
}
Replace item at index.
void replaceAt(int index, E item) {
final newList = List<E>.from(val);
newList[index] = item;
emit(newList);
}