作为flutter
.
Wraps NSUserDefaults (on iOS) and SharedPreferences (on Android), providing a persistent store for simple data. Data is persisted to disk asynchronously. Neither platform can guarantee that writes will be persisted to disk after returning and this plugin must not be used for storing critical data.
存储关键数据的正确方法是什么?
一个例子是访问令牌
如果使用 try / catch 我的应用程序不会崩溃。但我希望当 catch 块工作时,它还向 firebase crashlytics 控制台发送错误信息。