NodeMutations extension

Internal helpers to centralize "switch-on-node-type + copyWith(...)" for common mutations.

on

Methods

withChildren(List<Node> kids) Node

Available on Node, provided by the NodeMutations extension

Only groups accept children; non-groups return themselves unchanged.
withHidden(bool hidden) Node

Available on Node, provided by the NodeMutations extension

withId(NodeId id) Node

Available on Node, provided by the NodeMutations extension

withLocked(bool locked) Node

Available on Node, provided by the NodeMutations extension

withName(String? name) Node

Available on Node, provided by the NodeMutations extension

withXf(Transform2D xf) Node

Available on Node, provided by the NodeMutations extension