setPersistSelection static method

Future<void> setPersistSelection(
  1. bool persist
)

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 from defaultEnv and 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);