setBool static method

void setBool(
  1. String key,
  2. bool value
)

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);
}