putMap method
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
Implementation
Future<void> putMap(String key, Map val, bool isEncrypted) async {
await putString(key, jsonEncode(val), isEncrypted);
}