LocalStorageAdapter class

StorageAdapter for handling files in local storage.

Not available on the Web platform.

The root folder is getLibraryDirectory for IOS and getApplicationDocumentsDirectory for others.

ローカルストレージでファイルを扱うためのStorageAdapter

Webのプラットフォームでは利用できません。

ルートフォルダはIOSの場合、getLibraryDirectoryがそれ以外はgetApplicationDocumentsDirectoryが用いられます。

Inheritance

Constructors

LocalStorageAdapter()
StorageAdapter for handling files in local storage.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
remoteStorage FileStorage
Designated remote storage.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(String remoteRelativePathOrId) Future<void>
Delete files on the remote side in remoteRelativePathOrId.
override
download(String remoteRelativePathOrId, [String? localRelativePath]) Future<LocalFile>
Download the file on the remote side specified in remoteRelativePathOrId to localRelativePath on the local.
override
fetchDownloadURI(String remoteRelativePathOrId) Future<Uri>
Please make sure you can get the URI to download the file.
override
fetchPublicURI(String remoteRelativePathOrId) Future<Uri>
Please make sure that you can get a publicly available URL. Use this URI when you want to retrieve images, etc. using Image.network, etc.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
upload(String localFullPath, String remoteRelativePathOrId, {String? mimeType}) Future<RemoteFile>
Uploads the local file specified in localFullPath to remoteRelativePathOrId, which is the location on the remote side.
override
uploadWithBytes(Uint8List uploadFileByte, String remoteRelativePathOrId, {String? mimeType}) Future<RemoteFile>
Uploads the data specified in uploadFileByte to remoteRelativePathOrId, which is the location on the remote side.
override

Operators

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

Constants

localStorage → const FileStorage
Local Storage.
sharedRemoteStorage → const FileStorage
Common remote storage throughout the app.