WindowsOptions class
Specific options for Windows platform.
- If
useBackwardCompatibility
is set totrue
, trying to read from values which were written by previous versions. In addition, when reading or writing from previpus version's storage, read values will be migrated to new storage automatically. This may introduces some performance hit and might cause error for some kinds of keys. Default isfalse
. You must set this value tofalse
if you could use:- Keys containing
"
,<
,>
,|
,:
,*
,?
,/
,\
, or any of ASCII control charactors. - Keys containing
/../
,\..\
, or their combinations. - Long key string (precise size is depends on your app's product name, company name, and account name who executes your app).
- Keys containing
You can migrate all old data with this options as following:
await FlutterSecureStorage().readAll(
const WindowsOptions(useBackwardCompatibility: true),
);
- Inheritance
-
- Object
- Options
- WindowsOptions
Constructors
- WindowsOptions({bool useBackwardCompatibility = false})
-
const
Properties
Methods
-
copyWith(
{bool? useBackwardCompatibility}) → WindowsOptions -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, String> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultOptions → const WindowsOptions