Метод removeAt
- int index
Удаляет объект в позиции index из этого списка.
Этот метод уменьшает длину this на единицу и перемещает все последующие объекты вниз на одну позицию.
Возвращает удаленное значение.
index должно быть в диапазоне 0 ≤ index < length. Список должен быть изменяемым.
final parts = <String>['head', 'shoulder', 'knees', 'toes']; final retVal = parts.removeAt(2); // knees print(parts); // [head, shoulder, toes]
Реализация
E removeAt(int index);
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-core/List/removeAt.html