open static method
opens shared_preferences and initializes the storage; also deletes expired keys before returning optionally accepts an already initialized instance
Implementation
static Future<LegacyJsonSharedPreferencesStorage> open([
SharedPreferences? sP,
]) async {
final sharedPreferences = sP ?? await SharedPreferences.getInstance();
final instance = LegacyJsonSharedPreferencesStorage._(sharedPreferences);
return instance;
}