getSharedPreferences method

Future<SharedPreferences> getSharedPreferences(
  1. String name,
  2. [int mode = 0]

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".



static Future<SharedPreferences> getSharedPreferences(final String name,
    [final int mode = 0]) {
  return, mode);