initialize static method

Future<void> initialize()

Initialize the service with SharedPreferences

Implementation

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