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