Reputation: 250
As the info of Shared_preferences packages in flutter
.
Wraps NSUserDefaults (on iOS) and SharedPreferences (on Android), providing a persistent store for simple data. Data is persisted to disk asynchronously. Neither platform can guarantee that writes will be persisted to disk after returning and this plugin must not be used for storing critical data.
What is the right way I can store my critical data?
an example is access token
Upvotes: 5
Views: 751
Reputation: 15
Use get storage package is best for you https://pub.dev/packages/get_storage Here is link of this package
Upvotes: 1