saveBool method

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

Implementation

Future<void> saveBool(bool value, SaveKey key) async {
  String keyName = getKeyName(key);
  var pref = await SharedPreferences.getInstance();
  await pref.setBool(keyName, value);
}