I had the same problem with lists, now it is Map.
The following syntax is not Dart, as in it does not
This works:
(map ?? const {})[key] ?? otherValue;
Because the key will fallback to accessing an empty Map, which will always return null.
key
Map
null