LocalServerConfiguration class

本地文件缓存目录管理

Constructors

LocalServerConfiguration()

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

cacheDirectory String?
getter/setter pair
distDirectory Directory?
getter/setter pair
kFileBasic String
getter/setter pair
kFileName String
getter/setter pair
kFileNameDist String
getter/setter pair

Static Methods

checkZipPathDirectoryIsExist(String zipUrl) Future<bool>
检查当前项目是否已经存在
downloadUrl(String url) String
处理为完整的下载downloadUrl 必须配置 LocalServerCacheBinderSetting.baseDomain
getBasicFile(String keyPath) Future
basic 统一文件类的存放目录
getCurrentZipPathSyncDirectory(String zipUrl, {bool isExist = false}) Directory
返回对应目录
getDistDirectory() Future<Directory>
dist 各项目的存放目录
joinZipPathSync(String zipUrl, String fileName) String
返回对应路径