nearestName function

String? nearestName(
  1. String word,
  2. Iterable<String> candidates
)

The candidate an author writing word most likely meant (didYouMean), or null.

Implementation

String? nearestName(String word, Iterable<String> candidates) => didYouMean(word, candidates);