ConfigService class
Service for managing Spectra configuration.
Uses encrypted storage for API keys and preferences. Automatically migrates from legacy YAML format if detected.
Constructors
- ConfigService()
-
factory
Properties
Methods
-
clearConfig(
) → Future< void> - Clears all configuration data.
-
loadConfig(
) → Future< SpectraConfig> - Loads configuration from secure storage.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saveConfig(
SpectraConfig config) → Future< void> - Saves configuration to secure storage.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- homeOverride ↔ String?
-
Overrides the base directory used for config (normally
$HOME). Intended for tests so they don't touch the real~/.spectra.getter/setter pair