didYouMean function

String? didYouMean(
  1. List<String> suggestions
)

"did you mean" nextStep line, or null when there is nothing to suggest.

Implementation

String? didYouMean(List<String> suggestions) =>
    suggestions.isEmpty ? null : 'did you mean: ${suggestions.map((s) => '"$s"').join(', ')}';