StorageBase class abstract
Abstract class for implementing internal storage functionality.
With read, you can retrieve already stored rice paddies.
write to save the new data.
You can delete data with delete.
You can check to see if data is stored in that path under exists.
内部的なストレージ機能を実装するための抽象クラス。
readですでに保存されているで0田を取得することが出来ます。
writeで新しくデータを保存します。
deleteでデータを削除することが出来ます。
existsでそのパスにデータが保存されているかを確認することができます。
Constructors
- StorageBase()
-
Abstract class for implementing internal storage functionality.
const
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
-
delete(
String fileFullPath) → Future< void> -
Passing
fileFullPath
, the full path of the storage, will delete files at that location. -
exists(
String fileFullPath) → Future< bool> -
By passing
fileFullPath
, which is the full path of the storage, it checks if the file exists at that location. -
fetchURI(
String fileRelativePath) → Future< String> -
Passing
fileRelativePath
, a path relative to the storage root, returns the full path to the file at that location. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
String fileFullPath) → Future< Uint8List> -
By passing
fileFullPath
, the full path of the storage, data can be retrieved from that path. -
toString(
) → String -
A string representation of this object.
inherited
-
write(
String fileFullPath, Uint8List bytes) → Future< void> -
By passing the full path of the storage
fileFullPath
and the actual databytes
, the file can be saved in that path.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited