setBool static method

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

✅ Save a bool value.

Implementation

static Future<bool> setBool(String key, bool value) async {
  assert(_prefs != null, 'Call EaseXStorage.init() first!');
  return await _prefs!.setBool(key, value);
}