removeRange method

void removeRange(
  1. int start,
  2. int end
)

Removes a range of elements from the list.

https://api.flutter.dev/flutter/dart-core/List/removeRange.html

Implementation

void removeRange(int start, int end) {
  _rawList = _rawList.toList();
  _rawList.removeRange(start, end);
  _listChanged();
}