removeAt method
- int index
Remove item at index.
Implementation
E removeAt(int index) {
final newList = List<E>.from(val);
final removed = newList.removeAt(index);
emit(newList);
return removed;
}
Remove item at index.
E removeAt(int index) {
final newList = List<E>.from(val);
final removed = newList.removeAt(index);
emit(newList);
return removed;
}