setAttribute method
Implementation
@mustCallSuper
@override
void setAttribute(String key, value) {
super.setAttribute(key, value);
bool shouldRebuild = shouldElementRebuild(key, getAttribute(key), value);
if (_state != null && shouldRebuild) {
_state!.requestUpdateState();
}
attributeDidUpdate(key, value);
}