dartz icon indicating copy to clipboard operation
dartz copied to clipboard

Fix IMap.getKey() to return None() when a non-existent key is checked

Open rich-j opened this issue 9 months ago • 0 comments

Using IMap.getKey() to check if a key exists should return None() if the key doesn't exist. Instead it was throwing "Null check operator used on a null value".

This fix basically copies the code from the value .get() method that does correctly return None()

rich-j avatar Sep 20 '23 08:09 rich-j