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> -
extract(
[String path = '']) → Map< String, dynamic> - Returns a map of the subset of documents in the store under the given path. Data for the given path can exist in two different places:
-
graft(
String resolverPath, String otherResolverPath, String? dataPath, FileDataStore other) → void -
Grafts the data in the given
other
data store under resolver pathotherResolverPath
and data pathdataPath
into this data store under resolver pathresolverPath
at data pathdataPath
. -
hasPath(
String resolverPath, String path) → bool -
hasValue(
String resolverPath, String path) → bool -
hydrate(
) → Future< void> -
inspect(
) → Map -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
persist(
) → Future< void> -
recursiveDelete(
String path) → void - Deletes the given path from the data store recursively. Documents under the given path could be stored in one of two places:
-
shallowDelete(
String resolverPath, String path) → void - Shallowly deletes the given document path from the given resolver path store.
-
sync(
) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
-
writePath(
String resolverPath, String path, dynamic value) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited