PlayxSecurePrefs class abstract

Wrapper for handling secure preferences to save and get preferences.

Constructors

PlayxSecurePrefs()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance FlutterSecureStorage
no setter

Static Methods

clear() Future<void>
clear the preferences
clearOnReinstall() Future<void>
Clears Secure Storage On Reinstall This method is used to clear the secure storage when the app is reinstalled. As the secure storage is not cleared on app reinstall on ios.
getBool(String key, {bool fallback = false}) Future<bool>
return the secure preferences value in bool else returns fallback which default to false.
getDouble(String key, {double fallback = -1}) Future<double>
return the secure preferences value in double else returns fallback which default to -1.
getInt(String key, {int fallback = -1}) Future<int>
return the secure preferences value in int else returns fallback which default to -1.
getString(String key, {String fallback = ''}) Future<String>
return the secure preferences value in String else returns fallback which default to empty String.
maybeGetBool(String key) Future<bool?>
return the secure preferences value in bool else returns defaultValue.
maybeGetDouble(String key) Future<double?>
return the secure preferences value in double else returns null.
maybeGetInt(String key) Future<int?>
return the secure preferences value in int else returns null.
maybeGetString(String key) Future<String?>
return the secure preferences value in String else returns null.
remove(String key) Future<void>
remove the given preferences key
setBool(String key, bool value) Future<void>
Set the secure preferences value in bool.
setDouble(String key, double value) Future<void>
Set the secure preferences value in double.
setInt(String key, int value) Future<void>
Set the secure preferences value in int.
setString(String key, String value) Future<void>
Set the secure preferences value in String.