Uri? uri(String key) { String? value = raw(key); if (value == null) return null; return Uri.tryParse(value) ?? _invalid(key, 'a Uri', value); }