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
Available Extensions

Constructors

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

Properties

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

Methods

delete(String relativePath) Future<void>
Delete files on the remote side in relativePath.
override
download(String remoteRelativePath, [String? localRelativePath]) Future<LocalFile>
Download the file on the remote side specified in remoteRelativePath to localRelativePath on the local.
override
fetchDownloadURI(String remoteRelativePath) Future<Uri>
Please make sure you can get the URI to download the file.
override
fetchPublicURI(String remoteRelativePath) 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 remoteRelativePath) Future<RemoteFile>
Uploads the local file specified in localFullPath to remoteRelativePath, which is the location on the remote side.
override
uploadWithBytes(Uint8List uploadFileByte, String remoteRelativePath) Future<RemoteFile>
Uploads the data specified in uploadFileByte to remoteRelativePath, which is the location on the remote side.
override

Operators

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

Constants

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