get<T> method
Implementation
@override
T get<T>(EnvSchema variable) {
final result = _values.entries
.firstWhereOrNull((element) => element.key == variable.key);
if (variable.required && result == null) {
throw Exception('Environment variable ${variable.key} not found');
}
return result?.value as T;
}