TomLocationForgetting class
Forgets a storage location and scrubs its traces.
Built per action, over whatever the composition root holds at that moment: the key store is late-bound (it lives inside the settings container), and a build without a cache or a journal passes null and has nothing of that kind to scrub.
Constructors
-
TomLocationForgetting({required TomLocationRegistry locations, TomKeyStore? keyStore, List<
TomKeyRegistry> keyRegistries = const [], TomStorageCache? cache, TomCommitJournal? journal, List<TomStorage> backends = const []}) -
const
Properties
-
backends
→ List<
TomStorage> -
The backends this build offers, asked for the location's
meta/scope.final - cache → TomStorageCache?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- journal → TomCommitJournal?
-
final
-
keyRegistries
→ List<
TomKeyRegistry> -
The session's key registries, which also hold overrides that were never
persisted.
final
- keyStore → TomKeyStore?
-
The persisted key store, or null on a build that persists none.
final
- locations → TomLocationRegistry
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
forget(
String location) → Future< TomForgottenLocation> -
Forgets
locationand removes every trace of it this device holds. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
survey(
String location) → Future< TomLocationTraces> -
What forget would remove for
location. Changes nothing. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited