Open kevmoo opened 6 years ago
I have an example of this in my repo: https://github.com/matanlurey/dart_js_interop#creating-a-wrapper-class
It's unlikely we'll make improvements in JS interop like this in the short-term, as its very complex. A mutable list will need to be casted, not copied, as you have above.
This code causes an error at runtime - https://github.com/firebase/firebase-dart/issues/177
The work-around is to explicitly type the method as taking a
dynamic
.Desired: If a List/Map is returned from a facade API, it should be reified with the annotated type