removeAt method

E removeAt(
  1. 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;
}