RunAnywhereStorage extension

Extension methods for storage operations

on

Static Methods

checkStorageAvailable({required int modelSize, double safetyMargin = 0.1}) Future<bool>

Available on RunAnywhere, provided by the RunAnywhereStorage extension

Check if storage is available for a model download
clearStorage() Future<void>

Available on RunAnywhere, provided by the RunAnywhereStorage extension

Clear all storage
deleteStorageValue(String key) Future<bool>

Available on RunAnywhere, provided by the RunAnywhereStorage extension

Delete value from storage
downloadModel(String modelId) Stream<ModelDownloadProgress>

Available on RunAnywhere, provided by the RunAnywhereStorage extension

Download a model by ID with progress tracking
getBaseDirectoryPath() Future<String>

Available on RunAnywhere, provided by the RunAnywhereStorage extension

Get base directory URL for SDK files
getStorageValue(String key) Future<String?>

Available on RunAnywhere, provided by the RunAnywhereStorage extension

Get value from storage
setStorageValue(String key, String value) Future<bool>

Available on RunAnywhere, provided by the RunAnywhereStorage extension

Set value in storage
storageKeyExists(String key) Future<bool>

Available on RunAnywhere, provided by the RunAnywhereStorage extension

Check if key exists in storage