Closed fzyzcjy closed 2 years ago
I don't think that's the same result.
If _iMap is not null, but _iMap![key] returns null, this returns null:
_iMap
_iMap![key]
_iMap != null ? _iMap![key] : _map![key];
But here, if _iMap is not null, but _iMap![key] returns null, this returns _map![key]:
_map![key]
_iMap?[key] ?? _map![key];
You are right!
I don't think that's the same result.
If
_iMap
is not null, but_iMap![key]
returns null, this returns null:But here, if
_iMap
is not null, but_iMap![key]
returns null, this returns_map![key]
: