'dart2js create instance of dart class
I'm trying to create an instance of a dart class in js
Here is my dart code:
main() {
js.context["project"] = js.JsObject.jsify({
"Thing": Thing
});
}
When I call new project.Thing() in js I get the following error:
Uncaught TypeError: project.Thing is not a constructor
How do I call the constructor of a DartObject?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

