remove static method

Future<bool> remove(
  1. String key
)

Implementation

static Future<bool> remove(String key) async {
  SharedPreferences sharedPreferences = await SharedPreferences.getInstance();
  return await sharedPreferences.remove(key);
}