flutter_secure_storage
flutter_secure_storage copied to clipboard
Are custom options supposed to be used also in common operations?
From the documentation it is a bit unclear if setting up flutter_secure_storage with custom options for a platform, e.g.,
FlutterSecureStorage(
aOptions: AndroidOptions(
resetOnError:true,
encryptedSharedPreferences: true,
),
),
requires us to provide the same preferences also when reading/writing data? E.g.,
read(key: 'something', aOptions: AndroidOptions(resetOnError:true, encryptedSharedPreferences: true));
Or is it enough to read a key without providing those same custom options? E.g.,
read(key: 'something');
I would guess it's enough to provide it in the constructor. Providing in read would simply override the constructor