You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
voidmain() {
final {'foo':int? foo} = {};
print(foo);
}
This causes a StateError to be thrown as you can't match a key that doesn't exist in the map. We should document this behavior as it's not mentioned anywhere
Page URL
https://dart.dev/language/pattern-types#map
Page source
No response
Describe the problem
Consider the following code:
This causes a
StateError
to be thrown as you can't match a key that doesn't exist in the map. We should document this behavior as it's not mentioned anywhereExpected fix
Add a warning about this behavior on https://dart.dev/language/pattern-types#map
Additional context
No response
I would like to fix this problem.
The text was updated successfully, but these errors were encountered: