FileStorageManager class abstract
FlutterFileStorage storage allows you to save, read and delete files The files are saved using the fileStorage
Constructors
- FileStorageManager(FlutterSecureStorage storage, {required String keysStorageKey, FileStorage? fileStorage})
- FlutterFileStorage will use
Properties
- fileStorage ↔ FileStorage
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
containsKey(
{required String key}) → Future< bool> -
Returns true if the storage contains the given
key
. -
delete(
{required String key}) → Future< void> -
Deletes associated value for the given
key
. -
deleteAll(
) → Future< void> - Deletes all keys with associated values.
-
getAllKeys(
) → Future< Set< String> > - Returns all keys with associated values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
performContainsKey(
{required String key}) → Future< bool> -
performDelete(
{required String key}) → Future< void> -
performRead(
{required String key}) → Future< Uint8List?> -
performWrite(
{required String key, required Uint8List value}) → Future< void> -
read<
T> ({required String key}) → Future< T?> -
Returns the value for the given
key
or null ifkey
is not in the storage. -
toString(
) → String -
A string representation of this object.
inherited
-
write<
T> ({required String key, required T? value}) → Future< void> -
Encrypts the given
value
with the encryption key associated withkey
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited