SecureSharedPref class

Singletone class to access local storage.

Inheritance

Properties

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

Methods

clearAll() Future<void>
Method for deleting all data.
getBool(String key, {bool isEncrypted = false}) Future<bool?>
Method to get boolean from local storage key -> Key which you have provided while setting isEncrypted -> Flag which you have provided while encrypting
getDouble(String key, {bool isEncrypted = false}) Future<double?>
Method to get double from local storage key -> Key which you have provided while setting isEncrypted -> Flag which you have provided while encrypting
getInt(String key, {bool isEncrypted = false}) Future<int?>
Method to get String from local storage key -> Key which you have provided while setting isEncrypted -> Flag which you have provided while encrypting
getMap(String key, {bool isEncrypted = false}) Future<Map?>
Method to get map from local storage key -> Key which you have provided while setting isEncrypted -> Flag which you have provided while encrypting
getString(String key, {bool isEncrypted = false}) Future<String?>
Method to get String from local storage key -> Key which you have provided while setting isEncrypted -> Flag which you have provided while encrypting
getStringList(String key, {bool isEncrypted = false}) Future<List<String>>
Method to get StringList from local storage key -> Key which you have provided while setting isEncrypted -> Flag which you have provided while encrypting
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putBool(String key, bool val, {bool isEncrypted = false}) Future<void>
Method to set boolean in local storage key -> Key for key-value pair isEncrypted -> Flag whether to encrypt or not val -> Value for key-value pair
putDouble(String key, double val, {bool isEncrypted = false}) Future<void>
Method to set double in local storage key -> Key for key-value pair isEncrypted -> Flag whether to encrypt or not val -> Value for key-value pair
putInt(String key, int val, {bool isEncrypted = false}) Future<void>
Method to set int in local storage key -> Key for key-value pair isEncrypted -> Flag whether to encrypt or not val -> Value for key-value pair
putMap(String key, Map val, {bool isEncrypted = false}) Future<void>
Method to set map in local storage key -> Key for key-value pair isEncrypted -> Flag whether to encrypt or not val -> Value for key-value pair
putString(String key, String val, {bool isEncrypted = false}) Future<void>
Method to set String in local storage key -> Key for key-value pair isEncrypted -> Flag whether to encrypt or not val -> Value for key-value pair
putStringList(String key, List<String> val, {bool isEncrypted = false}) Future<void>
Method to set StringList in local storage key -> Key for key-value pair isEncrypted -> Flag whether to encrypt or not val -> Value for key-value pair
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

getInstance() Future<SecureSharedPref>
Method to get instance of class.