setBoolean method

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

Set the boolean value for the specified key in SharedPreferences.

Implementation

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