If I have a map like:
Map<String, int> myMap = Map();
Add a key and value:
myMap.putIfAbsent("yolo", 1000);
Then add a number using an operator like +=
myMap["yolo"] += 100;
With null safety it throws an error saying
The method '+' can't be unconditionally invoked because the receiver can be 'null'.
In a map, what is the best way to set the value based on the key?