RemoveAt method

void RemoveAt(
  1. int index
)
Removes the search filter at the specified index from the collection. The zero-based index of the search filter to remove.

Implementation

void RemoveAt(int index) {
  if (index < 0 || index >= Count) {
    throw RangeError.range(
      index,
      0,
      Count,
      "index",
      "Strings.IndexIsOutOfRange",
    );
  }

  this[index].removeChangeEvent(SearchFilterChanged);
  _searchFilters.removeAt(index);
  Changed();
}