initializeAttributes method
Implementation
@mustCallSuper
void initializeAttributes(Map<String, ElementAttributeProperty> attributes) {
attributes[_STYLE_PROPERTY] = ElementAttributeProperty(setter: (value) {
final map = CSSParser(value).parseInlineStyle();
inlineStyle.addAll(map);
recalculateStyle();
}, deleter: () {
_removeInlineStyle();
});
attributes[_CLASS_NAME] = ElementAttributeProperty(
setter: (value) => className = value,
deleter: () {
className = EMPTY_STRING;
});
attributes[_ID] = ElementAttributeProperty(
setter: (value) => id = value,
deleter: () {
id = EMPTY_STRING;
});
attributes[_NAME] = ElementAttributeProperty(setter: (value) {
_updateNameMap(value, oldName: getAttribute(_NAME));
}, deleter: () {
_updateNameMap(null, oldName: getAttribute(_NAME));
});
}