getString static method

Future<String?> getString(
  1. String key, {
  2. UStorageBucket bucket = UStorageBucket.support,
})

Implementation

static Future<String?> getString(String key, {UStorageBucket bucket = UStorageBucket.support}) async {
  final Uint8List? bytes = await getBytes(key, bucket: bucket);
  return bytes == null ? null : utf8.decode(bytes, allowMalformed: true);
}