instance static method Null safety

Future<Preferences> instance()

Preferences instance

Implementation

static Future<Preferences> instance() => SharedPreferences.getInstance().then((value) => Preferences(value));