DVStorage class
Constructors
- DVStorage()
-
const
- DVStorage.bound(DVFileStorageAdapter adapter)
-
Storage bound to
adapterfor good, whateverDV.FileStorageis configured with.DV.Platform.fileStorageis one: the same calls, on the device's own disk.const
Properties
- adapter → DVFileStorageAdapter
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
configure(
DVFileStorageAdapter adapter) → void -
Swaps the storage behind
DV.FileStorage. Defaults to DVMemoryFileStorageAdapter; pass an S3FileStorageAdapter for an object store. -
delete(
String key) → Future< void> -
exists(
String key) → Future< bool> -
get(
String key) → Future< List< int> > -
list(
{String prefix = ''}) → Future< List< String> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
put(
String key, List< int> bytes, {String? contentType}) → Future<void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited