Last updated:
0 purchases
finap secure shared preferences
Finap Secure Shared Preferences
Features #
Read and write data into shared preferences in a Secured manner
Getting started #
Run this command to install
flutter pub add finap_secure_shared_preferences
Usage #
Read Data #
Future<String?> read(String key) async {
return await storage?.read(key: key);
}
copied to clipboard
Read All Data #
Future<Map<String, String>?> readAll() async {
return await storage?.readAll();
}
copied to clipboard
Delete Data #
Future<void> delete(String key) async {
await storage?.delete(key: key);
}
copied to clipboard
Delete All Data #
Future<void> deleteAll() async {
await storage?.deleteAll();
}
copied to clipboard
Write Data #
Future<void> write(String key, String value) async {
if (Platform.isIOS) {
final options = IOSOptions(accessibility: IOSAccessibility.first_unlock);
await storage?.write(key: key, value: value, iOptions: options);
}
await storage?.write(key: key, value: value);
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.