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
You have to use factory constructor for @anonymous classes. I faced the same issue earlier and I thought it was fixed. File a new issue ? Without the factory keyword Dartium throws:
No constructor 'MapOptions' with matching arguments declared in class 'MapOptions'.
NoSuchMethodError: incorrect number of arguments passed to method named 'MapOptions'
Receiver: Type: class 'MapOptions'
Tried calling: MapOptions(center: Instance of 'JsObjectImpl', zoom: 8)
Found: MapOptions([dynamic, dynamic, dynamic])
Describe the issue you're seeing
Attempting to get up a simple Google Maps sample using package/js
Does it happen in Dartium or when compiled to JavaScript?
I'm running with pub serve to Chrome 49.0.2623.63, so Dart2JS
dart --version
$ dart --version Dart VM version: 1.14.2 (Tue Feb 9 23:13:17 2016) on "linux_x64"
pubspec.lock
Failing code: https://gist.github.com/domesticmouse/91681c0d684407fc67e1
The text was updated successfully, but these errors were encountered: