connectedCallback method
void
connectedCallback(
)
override
Implementation
@override
void connectedCallback() {
applyStyle(style);
style.flushPendingProperties();
if (_connectedCompleter != null) {
_connectedCompleter!.complete();
}
super.connectedCallback();
_updateNameMap(getAttribute(_nameAttr));
_updateIDMap(_id);
// Index classes for connected element
_updateClassIndex(const <String>[], _classList);
// Index all present attributes for connected element
if (attributes.isNotEmpty) {
for (final name in attributes.keys) {
_updateAttrPresenceIndex(name, present: true);
}
}
}