getUri method
Implementation
Uri getUri(String key, {Uri? defaultValue}) {
final s = _env[key];
if (s == null) {
if (defaultValue != null) return defaultValue;
throw StateError('Missing env "$key"');
}
final u = Uri.tryParse(s.trim());
if (u == null) throw FormatException('Env "$key" is not a valid URI: "$s"');
return u;
}