setBoolAsync function

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

add a Bool in SharedPref

Implementation

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