Answers for "store key value data on disk flutter"

4

store key value data on disk flutter

dependencies:
  shared_preferences: ^2.0.7

SharedPreferences prefs = await SharedPreferences.getInstance();
prefs.setString('stringValue', "abc");
prefs.setInt('intValue', 123);
prefs.setDouble('doubleValue', 115.0);
prefs.setBool('boolValue', true);
Posted by: Guest on August-21-2021

Code answers related to "store key value data on disk flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language