SuperSecureSharedPref constructor
SuperSecureSharedPref()
Implementation
SuperSecureSharedPref() {
PackageInfo.fromPlatform().then((value) async {
_packageInfo = value;
const AndroidOptions _androidOptions =
AndroidOptions(encryptedSharedPreferences: true);
final IOSOptions _iosOptions =
IOSOptions(accountName: value.packageName, synchronizable: false);
_secureStorage ??= FlutterSecureStorage(
aOptions: _androidOptions, iOptions: _iosOptions);
_init();
});
}