resolvePropertyName method
The name of the variable that holds the property name, or null.
The exact name is tried first, then with ., - or both replaced by
_, then all of these in upper case, then upper case without dashes.
source.resolvePropertyName('server.port'); // 'SERVER_PORT'
Implementation
String? resolvePropertyName(String name) {
for (final candidate in _candidates(name)) {
if (source.containsKey(candidate)) {
return candidate;
}
}
return null;
}