handleSetEffectivePropertyValueForNode method
void
handleSetEffectivePropertyValueForNode(
- int? id,
- Map<String, dynamic> params
)
Implementation
void handleSetEffectivePropertyValueForNode(int? id, Map<String, dynamic> params) {
final ctx = dbgContext;
if (ctx == null) {
sendToFrontend(id, null);
return;
}
final int? frontendNodeIdParam = params['nodeId'] as int?;
int? nodeId = frontendNodeIdParam != null ? ctx.getTargetIdByNodeId(frontendNodeIdParam) : null;
String? propertyName = params['propertyName'];
String? value = params['value'];
if (nodeId != null && propertyName != null && value != null) {
BindingObject? element = ctx.getBindingObject(Pointer.fromAddress(nodeId));
if (element is Element) {
element.setInlineStyle(camelize(propertyName), value);
}
}
sendToFrontend(id, null);
if (frontendNodeIdParam != null) {
_trackNodeComputedUpdate(frontendNodeIdParam);
}
}