removeTerm method
- String term
Returns true if the term was in the list and then was removed.
The things we build the interface, very unlikely to return false, as we remove existing items.
Implementation
bool removeTerm(String term) {
if (_terms.remove(term)) {
_changed = _computeHasChanged();
notifyListeners();
return true;
}
return false;
}