removeData static method

Future<bool> removeData({
  1. required String key,
})

Remove data with key.

Implementation

static Future<bool> removeData({required String key}) async {
  final prefs = await SharedPreferences.getInstance()
    ..reload();
  return prefs.remove(_kPrefsKeyPrefix + key);
}