如何在flutter中存储关键数据?

tbm*_*m98 5 flutter

作为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.

存储关键数据的正确方法是什么?

一个例子是访问令牌

小智 1

使用 get storage 包最适合您 https://pub.dev/packages/get_storage 这是该包的链接