init static method

Future<void> init()

Initializes the SharedPreferences instance. Should be called in main() before using any other methods.

Implementation

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