initMySharedPreferences static method

Future initMySharedPreferences()

Initializes the singleton SharedPreferences instance.

Implementation

static Future initMySharedPreferences() async {
  _prefs = await SharedPreferences.getInstance();
}