setBool method

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

Sets a bool value and notifies all active listeners that there's a new value for the key.

Returns true if a value was successfully set for the key, otherwise returns false.

Implementation

Future<bool> setBool(String key, bool value) {
  return setCustomValue(key, value, adapter: BoolAdapter.instance);
}