setBoolean static method

Future<bool> setBoolean(
  1. String key,
  2. bool value
)

Set a boolean value

Implementation

static Future<bool> setBoolean(String key, bool value) async {
  if (!_isInitialized || _prefs == null) return false;
  return await _prefs!.setBool(key, value);
}