Skip to content

Instantly share code, notes, and snippets.

@ashishrawat2911
Created April 22, 2019 11:23
Show Gist options
  • Select an option

  • Save ashishrawat2911/e9ba0b8bc3fcf1aae1fe7c2ca78cfc2d to your computer and use it in GitHub Desktop.

Select an option

Save ashishrawat2911/e9ba0b8bc3fcf1aae1fe7c2ca78cfc2d to your computer and use it in GitHub Desktop.
removeValues() async {
SharedPreferences prefs = await SharedPreferences.getInstance();
//Remove String
prefs.remove("stringValue");
//Remove bool
prefs.remove("boolValue");
//Remove int
prefs.remove("intValue");
//Remove double
prefs.remove("doubleValue");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment