removeValue method

void removeValue(
  1. String key
)

Implementation

void removeValue(String key) async {
  var prefs = await SharedPreferences.getInstance();
  prefs.remove(key);
}