StorageResource class

Constructors

StorageResource(APIHttpClient httpClient)
const

Properties

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

Methods

createStorageByBytes(Uint8List bytes) Future<Storage>
透過位元建立檔案儲存,如果建立成功將返回檔案儲存資訊
createStorageByFile(File file) Future<Storage>
透過檔案建立檔案儲存,如果建立成功將返回檔案儲存資訊
downloadStorage({required String uuid, required File file}) Future<void>
下載檔案儲存至指定路徑
getStorage(String uuid) Future<Storage>
Get storage info by uuid.
getStorageBytes(String uuid) Future<Uint8List>
透過 UUID 取得檔案儲存的位元
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