putBool static method

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

put bool.

Implementation

static Future<bool> putBool(String key, bool value) {
  _ensureInitialized();
  return _captureWrite(key, value, () => _prefs.setBool(key, value));
}