readBytes static method

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

Reads bytes saved under key, or null. await UFile.readBytes("avatar.png")

Implementation

static Future<Uint8List?> readBytes(String key, {UStorageBucket bucket = UStorageBucket.support}) => UFileStorage.getBytes(key, bucket: bucket);