Closed jlcool closed 5 years ago
How come is it asynchronous? Since it's just serializing, it should be synchronous, and you must do any async actions after loading (such as after doing persistor.load()
, which will return the result of the serializer)
Because I encrypt and decrypt the serialized data, and this encryption and decryption method is asynchronous, I am afraid that the serialized data will be modified, affecting software security.
That's supposed to be part of the storage instead. Copy/paste the FlutterStorage and add your encryption there
Well, thank you
No problem! Let me know if you need any help. Feel free to create a package to let others use it too!
AppState.fromJson is an asynchronous method,I can't write it like this. How should I write it?