withXf method
Implementation
Node withXf(Transform2D xf) => switch (this) {
final TextNode n => n.copyWith(xf: xf),
final ImageNode n => n.copyWith(xf: xf),
final PathNode n => n.copyWith(xf: xf),
final IconNode n => n.copyWith(xf: xf),
final GroupNode n => n.copyWith(xf: xf),
};