select static method

Future<void> select(
  1. String newValue
)

Select a different environment for the next time the app starts

Implementation

static Future<void> select(String newValue) async {
  final prefs = await SharedPreferences.getInstance();
  prefs.setString(_storageKey, newValue);
}