Open jodinathan opened 2 years ago
Hello. I'm interested in contributing to the Dart community. I'm a beginner
at dart language since I have already made some Android/ iOS applications in flutter using dart language. I know how we can use APIs
since I have made my mini project on it.
I'm a quick learner and It will be really helpful to me if you can guide me on this, I've already cloned the project on my machine but I'm a little confused there are so many different files.
Thanks.
Today it seems to not be trivial to use webcomponents and Dart. And the reason is that a Dart class can't extend a JS class/HTMLElement.
I think that not extend a JS class is ok, however, to be able to use a Dart class as a WebComponent we could make that the resulting JS class actually extend the desired Element/class when implementing.
Example:
the js-interop file
the dart class
now as
Foo
implements a JS interoped class, the resulting js could be:With this we still make sure that a Dart class doesn't mix up with JS classes directly, but still allow it to be used as a webcomponent