removeAt method

void removeAt(
  1. int index
)

Method to remove item by index

Implementation

void removeAt(int index) {
  if (index >= 0 && index < _items.length) {
    _items.removeAt(index);
  }
}