putBool static method

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

Implementation

static Future<bool> putBool(String key, bool? value) =>
    value == null ? remove(key) : sharedPreferences.setBool(key, value);