setBool function

  1. @Deprecated('Use setValue instead')
Future<bool> setBool(
  1. String key,
  2. bool value
)

add a Bool in SharedPref

Implementation

@Deprecated('Use setValue instead')
Future<bool> setBool(String key, bool value) async {
  return await getSharedPref().then((pref) async {
    return await pref.setBool(key, value);
  });
}