setBool abstract method

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

Saves a boolean value to persistent storage in the background.

If value is null, this is equivalent to calling remove() on the key.

Implementation

Future<bool> setBool(String key, bool value);