services/user_config library

Constants

defaultConfigYaml → const String
Default unified config: settings scalars + scrcpy plugin.

Functions

ensureConfigFile(String configPath) Future<void>
Ensures configPath exists with settings + plugins sections.
mergeSettingsScalars(String content, {required String themeName, required String? lastSelectedDeviceId}) String
Replaces or inserts theme: and last_selected_device_id: lines while preserving the rest of the file (plugins, comments).
resolveConfigPath(String? override) String
Resolves the path to the unified user config file.