withXf method

Node withXf(
  1. Transform2D xf
)

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),
};