Element.created constructor
Element.created(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);
Source
Element.created() : super._created() { // Validate that this is a custom element & possibly perform additional // initialization. _blink.Blink_Utils.initializeCustomElement(this); }
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/Element/Element.created.html