FileStorage class
File-based implementation of AbusStorage using Directory.
- Inheritance
-
- Object
- AbusStorage
- FileStorage
- Implementers
Constructors
- FileStorage(Directory directory)
Properties
Methods
-
clear(
) → Future< void> -
Clear all data in this storage.
override
-
delete(
String key) → Future< void> -
Delete data for a specific key.
override
-
dispose(
) → void -
listKeys(
) → Future< List< String> > -
List all available keys in this storage.
override
-
load(
String key) → Future< Map< String, dynamic> ?> -
Load data for a specific key.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
String key, Map< String, dynamic> ? data) → void - Notify listeners that data has changed for a key.
-
save(
String key, Map< String, dynamic> data) → Future<void> -
Save data under a specific key.
override
-
sync(
) → Future< void> -
Manually trigger a synchronization of the storage state.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
watch(
String key) → Stream< Map< String, dynamic> ?> -
Watch for changes in a specific key.
override
-
watchAll(
) → Stream< String> -
Watch for any changes in the storage.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited