init static method

Future<SharedPreferences> init()

Implementation

static Future<SharedPreferences> init() async {
  _prefs = await SharedPreferences.getInstance();
  return _prefs;
}