patched method

Node patched(
  1. Json patch
)

This node with patch (a JSON merge patch over its JSON, as an interaction state's) applied, as its declarations read it: a value of a union type (a size, a position, a paint...) written in another form is replaced, not merged (mergeNodePatch).

Implementation

Node patched(Json patch) =>
    Node.fromJson(mergeNodePatch(toJson(), patch, props: spec?.props), id: id, catalog: catalog) ?? this;