setBool method

Future<bool> setBool(
  1. String dataKey,
  2. bool? dataValue, {
  3. bool notify = true,
})

Set the boolean value for the specified key in SharedPreferences. Added for better integration with SharedPreferences

Implementation

Future<bool> setBool(String dataKey, bool? dataValue,
    {bool notify = true}) async {
  assert(_key != null);
  return _decorator.setBool(dataKey, dataValue, notify: notify);
}