has method

bool has(
  1. String word
)

Whether the trie contains the word.

Implementation

bool has(String word) {
  return findPrefix(word, fromNode: _root)?.isEndOfWord ?? false;
}