TomLocationRegistry class abstract interface

Where the registered storage locations live.

A port rather than the encrypted settings store itself: registering a location has to work on a build that persists nothing, and a port with an in-memory implementation says "remembered for this session" truthfully rather than through a null check at every call site.

Implementers

Properties

hashCode → int
The hash code for this object.
no setterinherited
locations → List<TomStorageLocation>
Every registered location. Empty is the ordinary first-run answer.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

forget(String locator) → Future<bool>
Forgets the location at locator, if any.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(TomStorageLocation location) → Future<bool>
Registers location, replacing whatever was held for its locator.
toString() → String
A string representation of this object.
inherited

Operators

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