setBool method

dynamic setBool(
  1. String key,
  2. bool? value
)

Set the boolean value against a key

Implementation

setBool(String key, bool? value) {
  if (value == null) {
    return _prefs!.remove(key);
  }
  return _prefs!.setBool(key, value);
}