setResolvedValue method
Implementation
DOMElement setResolvedValue(dynamic value) {
_resolvedValue = value;
var element = _valueAsElement(value);
if (_resolvedValueListenerSubscription == null) {
var listenerSubscription = _listenDSXValue(objectSource, (objSrc) {
var value = _toDSXValue(objSrc, objSrc);
setResolvedValue(value);
});
_resolvedValueListenerSubscription = listenerSubscription;
}
if (_resolvedElement != null) {
var runtime = _resolvedElement!.getRuntime();
if (runtime.domGenerator.isNodeInDOM(runtime.node)) {
runtime.replaceBy([element]);
} else {
runtime.remove();
_resolvedValueListenerSubscription?.cancel();
reset();
}
}
_resolvedElement = element;
return element;
}