isItAWord function

bool isItAWord(
  1. String word
)

Implementation

bool isItAWord(String word) {
  if (words.contains(word)) {
    return true;
  } else if (w.contains(word)) {
    return true;
  }
  return false;
}