setBool static method
Sets a boolean value in storage synchronously. Note: The actual write to disk happens asynchronously in the background.
Implementation
static void setBool(String key, bool value) {
_ensureInitialized();
_prefs!.setBool(key, value);
}