storageGet method
Retrieves a value from the disk cache by key
as bytes.
Ensures the storage cache is initialized before access.
Implementation
Future<Uint8List?> storageGet(String key) async {
await _storageInit();
FileSystemEntity? file = await _storageCache.get(key);
if (file != null && file is File) {
return await file.readAsBytes();
}
return null;
}