Element constructor
Element(
- BindingContext? context
Implementation
Element(BindingContext? context) : super(NodeType.ELEMENT_NODE, context) {
// Init style and add change listener.
style = CSSStyleDeclaration.computedStyle(this, defaultStyle, _onStyleChanged, _onStyleFlushed);
// Init render style.
renderStyle = CSSRenderStyle(target: this);
// Init attribute getter and setter.
initializeAttributes(_attributeProperties);
}