In Android, we are defining Shared Preferences Mode like
getSharedPreferences(String name, int mode)
MODE_PRIVATE, MODE_WORLD_READABLE, MODE_WORLD_WRITEABLE
How we can define MODE in shared_preferences flutter?
MODE
shared_preferences
SharedPreferences uses MODE_PRIVATE and by now we don't have the option to change this.
MODE_PRIVATE
The other options are now deprecated and it is not recommended to use then. See https://developer.android.com/reference/android/content/Context.html#MODE_WORLD_READABLE.
1.4m articles
1.4m replys
5 comments
56.9k users