StorageManager class

AliPlayer 存储管理器

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

cachePath String?
Get cache path (已包含子目录)
no setter
defaultStorageType StorageType
Get default storage type
no setter
filesPath String?
Get files path (已包含子目录)
no setter
isConfigured bool
Check if storage is configured
no setter
storageConfig StorageConfig?
Get current storage configuration
no setter

Static Methods

getBasePath([StorageType? type]) String?
Get base path by storage type (已包含子目录)
getFullPath([StorageType? type]) String?
Get full path with subdirectory (alias for getBasePath)
setCachePath(String path) → void
Set cache path
setDefaultStorageType(StorageType type) → void
Set default storage type
setFilesPath(String path) → void
Set files path
setStorageConfig(StorageConfig config) → void
Set storage configuration
setStoragePaths({String? cachePath, String? filesPath}) → void
Set storage paths
validateStorage([StorageType? type]) → (bool, String?)
Validate storage configuration