TomStorageLocation class

A named storage location (a repository, a folder) the user has registered.

The locations group is a convenience registry, not an access-control list. Nothing consults it before opening a locator — a document opened by path works whether or not its location is listed. It lets an application offer somewhere to save without the user retyping an address, which is why it holds no credential: the credential for a location is a token, keyed by host, and a second copy here would be a secret with two homes.

Constructors

TomStorageLocation({required String displayName, required String locator})
const

Properties

displayName → String
What the location is called in the UI.
final
hashCode → int
The hash code for this object.
no setteroverride
locator → String
The locator prefix the location resolves to.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? displayName, String? locator}) → TomStorageLocation
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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

Constants

groupName → const String
The name of the settings group that holds the registered locations.