setAttribute method
Implementation
@override
void setAttribute(String key, String value) {
super.setAttribute(key, value);
switch (key) {
case SRC: src = attributeToProperty<String>(value); break;
case WIDTH: width = attributeToProperty<double>(value); break;
case HEIGHT: height = attributeToProperty<double>(value); break;
}
}