TomSecretsBrowserHosts class final

The host's manifests of this user: installed, removed, checked.

Constructors

TomSecretsBrowserHosts({required String home, required String hostExecutable, String? operatingSystem, Map<String, String>? environment, TomSecretsRegistry? registry})
The manifests in home naming hostExecutable (its absolute path), on operatingSystem (default this one); environment (default the process's) gives Windows' LOCALAPPDATA and APPDATA; registry (default reg.exe) holds Windows' keys.

Properties

hashCode → int
The hash code for this object.
no setterinherited
home → String
The user's home folder.
final
hostExecutable → String
The host's executable, as the manifests name it.
final
operatingSystem → String
macos, linux or windows.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

install(TomSecretsBrowser b) → Future<void>
Writes the manifest for b (and on Windows its registry value). Throws StateError for a sandboxed browser.
manifest(TomSecretsBrowser b) → Map<String, Object?>
The manifest for b.
manifestFolder(TomSecretsBrowser b) → String
The folder the browser reads the manifest from (on Windows the one the registry value points into).
manifestPath(TomSecretsBrowser b) → String
The manifest file.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
profileFolder(TomSecretsBrowser b) → String
The browser's profile folder, whose presence offers it.
registryKey(TomSecretsBrowser b) → String?
The Windows registry key naming the manifest, or null elsewhere.
remove(TomSecretsBrowser b) → Future<void>
Removes the manifest for b (and its registry key); nothing else.
repair() → Future<List<TomSecretsBrowser>>
The check at every start: rewrites each installed manifest that no longer names this host (the app moved or was updated); answers the browsers repaired.
state(TomSecretsBrowser b) → Future<TomSecretsBrowserHostState>
Where the host stands for b.
states() → Future<List<TomSecretsBrowserHostState>>
Every browser's state, in TomSecretsBrowser's order.
toString() → String
A string representation of this object.
inherited

Operators

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