updateNode method
Implementation
void updateNode(VoltronMap map) {
var propToUpdate = _propToUpdate;
if (propToUpdate != null) {
//mProps do not syc to UI
var paramsMap = combineProps(propToUpdate, map);
if (paramsMap.size() > 0) {
for (var key in paramsMap.keySet()) {
if (key == NodeProps.kStyle) {
var styles = paramsMap.get<VoltronMap>(key);
if (styles != null) {
var stylesToUpdate = propToUpdate.get<VoltronMap>(key) ?? VoltronMap();
for (String styleKey in styles.keySet()) {
stylesToUpdate.push(styleKey, styles.get(styleKey));
}
_updateStyle(stylesToUpdate);
}
} else {
propToUpdate.push(key, paramsMap.get(key));
}
}
}
} else {
var curProps = _props;
if (curProps != null) {
_propToUpdate = combineProps(curProps, map);
}
}
}