Created
April 22, 2019 11:23
-
-
Save ashishrawat2911/e9ba0b8bc3fcf1aae1fe7c2ca78cfc2d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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