didYouMean function
, did you mean 'x'? for the closest of options, else nothing.
Implementation
String didYouMean(String wrong, Iterable<String> options) {
final close = closestName(wrong, options);
return close == null ? '' : " (did you mean '$close'?)";
}