suggestions method
Configuration Suggestions
Returns a list of suggestions for the given key
. Suggestions are
typically generated based on partial matches, available configuration
keys, or introspection of the environment.
Example
final hints = env.suggestions('db.us');
print(hints); // might print ['db.user', 'db.username']
Use Cases
- Improving developer experience with autocompletion or hints.
- Detecting typos in property keys by suggesting valid alternatives.
Notes
- The behavior is implementation-specific and may involve fuzzy matching or prefix-based lookups.
- Returns an empty list if no suggestions are found.
Implementation
@override
List<String> suggestions(String key) => _propertyResolver.suggestions(key);