init static method

Future init()

Implementation

static Future init() async {
  if (_sharedPreferences == null) {
    await _lock.synchronized(() async {
      _sharedPreferences ??= await SharedPreferences.getInstance();
    });
  }
}