Element.created constructor
Custom element creation constructor.
This constructor is used by the DOM when a custom element has been created. It can only be invoked by subclasses of Element from that classes created constructor.
class CustomElement extends Element { factory CustomElement() => new Element.tag('x-custom'); CustomElement.created() : super.created() { // Perform any element initialization. } } document.registerElement('x-custom', CustomElement);
Implementation
Element.created() : super._created();
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-html/Element/Element.created.html