setBool method
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<void> setBool(String key, bool? value) =>
write<bool>(key, value, _identity);