removeAt method

void removeAt(
  1. int index
)

Removes a result at the specified index.

Implementation

void removeAt(int index) {
  if (index >= 0 && index < _results.length) {
    final removed = _results.removeAt(index);
    _seenValues.remove(removed.rawValue.trim().toLowerCase());
    notifyListeners();
  }
}