StorageConfig class
存储路径配置
Constructors
- StorageConfig({String? cachePath, String? filesPath})
-
const
Properties
- cachePath → String?
-
缓存存储路径
final
- defaultPath → String?
-
获取默认路径(优先使用缓存路径)
no setter
- filesPath → String?
-
文件存储路径
final
- hasAnyPath → bool
-
检查是否有任何路径被设置
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? cachePath, String? filesPath}) → StorageConfig - 复制并更新配置
-
getPath(
StorageType type) → String? - 根据存储类型获取对应路径
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited