I am attaching a screenshot that explains the problem.
A map that does not seem to contain a given key, instead it exists!
Mouse (not visible) on the variable mPrefMap clearly shows the contents of the map.
I also used an Int in the Put statement; the key is not defined as String.
I can't upload the project: it is too big and contains secrets of State
The mouse shows the content of the map.
You can see from the log that the value of PrefId is 1 and the content of the map is 90 and 11, hence it goes to false in ContainsKey.
The mouse shows the content of the map.
You can see from the log that the value of PrefId is 1 and the content of the map is 90 and 11, hence it goes to false in ContainsKey.