getString method
Downloads an object and decodes it as UTF-8 text.
Returns null when the object cannot be loaded.
Example:
final text = await client.getString('logs/run.txt');
print(text);
Implementation
Future<String?> getString(String key) async {
final data = await getObject(key);
return data != null ? utf8.decode(data) : null;
}