copyWithRemovedAt method
Returns a copy with the element at index removed
Implementation
List<T> copyWithRemovedAt(int index) {
if (index < 0 || index >= length) {
throw RangeError.index(index, this, 'index', null, length);
}
return [...sublist(0, index), ...sublist(index + 1)];
}