saveBool static method

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

Saves a bool value to storage.

Implementation

static Future<bool> saveBool(String key, bool value) async {
  return await _prefs?.setBool(key, value) ?? false;
}