FileDataStore class

Implementers

Constructors

FileDataStore({required String name, required Directory directory, bool isHydrated = false, String suffix = ''})

Properties

hashCode int
The hash code for this object.
no setterinherited
isDirty bool
Whether the plaintext store has pending changes that should be persisted.
getter/setter pair
isEmpty bool
no setter
isHydrated bool
Whether the file data store has been hydrated yet from its persisted file.
getter/setter pair
name String
The name of the file data store.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suffix String
The file data store name suffix.
final

Methods

delete() Future<void>
deletePath(String path, {bool recursive = true}) Future<void>
extractValues([String path = '']) Map<String, Json>
Returns a flat map of all values in the store by path.
graft(FileDataStore other, String path) Future<void>
Grafts the data at the given path in the other FileDataStore onto this data store at that path.
hasValue(String path) bool
hydrate() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
persist() Future<void>
sync() Future<void>
toString() String
A string representation of this object.
inherited
writePath(String path, Json value) Future<void>

Operators

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

Constants

defaultKey → const String
The name of the default data store key.