removeSuggestion method

void removeSuggestion(
  1. 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);
}