There is a guide on how to create Dart web-ui custom element in Dart code. There is also sample code for this technique
Is there any example on how to create a Dart
Here is the example code:
import 'dart:html'; import 'package:polymer/polymer.dart'; main() { querySelector('#add-here').children.add(new Element.tag('my-element')); }
Notice the use of new Element.tag('my-element').
new Element.tag('my-element')