removeAt method

void removeAt(
  1. int index
)

Remove the element at index from the List held in this cell.

NOTE: This method does not modify the underlying list but creates a new list with the element at the given index removed.

Implementation

void removeAt(int index) {
  final elements = List<T>.from(value);
  assert(index < elements.length);

  elements.removeAt(index);
  value = elements;
}