flag_secure 2.0.2
flag_secure: ^2.0.2 copied to clipboard
A Flutter plugin to manage Android's FLAG_SECURE at runtime
flag_secure #
A Flutter plugin to manage Android's FLAG_SECURE at runtime.
Installing #
See the installing instructions.
Usage #
-
Get whether
FLAG_SECURE
is set:try { final bool? isSet = await FlagSecure.isSet; } on PlatformException { // Handle exception }
copied to clipboard -
Set
FLAG_SECURE
:try { await FlagSecure.set(); } on PlatformException { // Handle exception }
copied to clipboard -
Unset
FLAG_SECURE
:try { await FlagSecure.unset(); } on PlatformException { // Handle exception }
copied to clipboard
Example #
See the example app.