completions property
A collection of MapEntry with completion suggestions to their descriptions.
Implementation
@override
Map<String, String?> get completions {
final mapCompletions = <String, String?>{};
for (final option in completionLevel.visibleOptions) {
final abbr = option.abbr;
if (abbr != null) {
mapCompletions['-$abbr'] = option.help;
}
}
return mapCompletions;
}