setBool method

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

Implementation

Future<bool> setBool({
  required String key,
  required bool value,
}) async {
  try {
    return await Database.getSharedPreferences().setBool(key, value);
  } catch (_) {}

  return false;
}