translated method

  1. @override
VectorPathOutline translated(
  1. DiagramPoint delta
)
override

This outline moved by delta, or null when the implementation cannot translate itself. Resolution then re-runs the full shape pipeline.

Implementation

@override
VectorPathOutline translated(DiagramPoint delta) => VectorPathOutline._(
  bounds.translate(delta),
  List.unmodifiable([
    for (final node in nodes) node.copyWith(position: node.position + delta),
  ]),
  List.unmodifiable([for (final point in points) point + delta]),
  closed,
);