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
The error was:Could not format because the source could not be parsed:line 122, column 40 of .: Expected to find '('. ╷122 │ final MappingHook hook = const myHook ; │ ^^^^^^^^^^^^^^^^^ ╵
There code here is not referring to the source code, it's referring to the code that dart_mappable created, before throwing it away once it detected a syntax error.
The issue here is that const should only appear when instantiating a Hook, not when referencing a constant.
The text was updated successfully, but these errors were encountered:
If you were to declare a top level constant hook and use it. You will get a build time error.
E.G.
There code here is not referring to the source code, it's referring to the code that dart_mappable created, before throwing it away once it detected a syntax error.
The issue here is that
const
should only appear when instantiating a Hook, not when referencing a constant.The text was updated successfully, but these errors were encountered: