1

Assumed that I code some type of library and convert it to js (per dart2js). How can I access the prototypes to create objects? What is right way to resolve dart-namespaces?

1 Answer 1

1

You can expose functions to JavaScript

see also js library

I don't think there is a way to expose classes to JavaScript, but I'm not sure about this.

Sign up to request clarification or add additional context in comments.

2 Comments

thx for your answer, but I am rather looking for a way to use js (dart2js output) within js projects. And your links describe possibilities to use js within dart.
But each of the links contains an example how to expose a Dart function to JavaScript so that the Dart function can be called from JS. I haven't seen anything that goes more in the direction you want.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.