putBoolean static method

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

Implementation

static Future<bool?> putBoolean(String key, bool value)async {
  return await sharedPreferences?.setBool(key, value);
}