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