getInstance static method

Future<CoreStoreSharedPrefsImp> getInstance(
  1. {SharedPreferences? store}
)

Implementation

static Future<CoreStoreSharedPrefsImp> getInstance(
    {SharedPreferences? store}) async {
  if (_instance == null) {
    store ??= await SharedPreferences.getInstance();
    _instance = CoreStoreSharedPrefsImp._internal(store);
  }

  return _instance!;
}