setPersistSelection static method
Changes the persist mode at runtime.
true: saves the current environment immediately so the next launch restores it.false: clears the stored selection; the next launch always starts fromdefaultEnvand in-session switches are not written to the store.
Can also be toggled interactively via the debug panel.
Implementation
static Future<void> setPersistSelection(bool persist) =>
EnvManager.instance.setPersistSelection(persist);