getMetadataValue method
- String key
Gets a metadata value by key.
Returns null when the attribute is not set.
final format = await artifact.getMetadataValue('format');
Implementation
Future<String?> getMetadataValue(String key) async {
final response = await client.getAttribute(kref.uri, key);
return response.value.isEmpty ? null : response.value;
}