removeAt method

void removeAt(
  1. int index
)

Implementation

void removeAt(int index) {
  final newList = <I>[];
  for (final (i, input) in list.value.indexed) {
    if (i == index) {
      input.dispose();
    } else {
      newList.add(input);
    }
  }
  list.value = newList;
}