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
Thanks for reporting this bug, we have run into this in the past but apparently we haven't resolved it. I agree they should be allowed. I'll close this entry to mark it as a duplicate of #17207.
Meanwhile, there is something you can try to work around this limitation. I believe you can define a const class like:
Uh oh!
There was an error while loading. Please reload this page.
When Dart2Js encounters
const Map<Type, AnyThing>
, it throws the following error:Analyzer doesn't have a problem with it. DartVM executes the code pretty fine. source_gen and analyzer package seems to handle them pretty well.
The text was updated successfully, but these errors were encountered: