removeSuggestion method
void
removeSuggestion(
- T suggestion
Implementation
void removeSuggestion(T suggestion) {
suggestions.contains(suggestion)
? suggestions.remove(suggestion)
: throw "List does not contain suggestion and therefore cannot be removed";
updateOverlay(currentText);
}