getSharedPreferences static method
Retrieves and holds the contents of the preferences file name
, returning
a SharedPreferences
through which you can retrieve and modify its
values.
For compatibility with the shared_preferences
Flutter plugin, use the name
"FlutterSharedPreferences".
Implementation
static Future<SharedPreferences> getSharedPreferences(final String name,
[final int mode = 0]) {
return SharedPreferences.open(name, mode);
}