getAttribute method
- String key
Gets a single metadata attribute from this item.
Returns null when the attribute is not set.
final status = await item.getAttribute('status');
Implementation
Future<String?> getAttribute(String key) async {
final response = await client.getAttribute(kref.uri, key);
return response.exists ? response.value : null;
}