translated method

  1. @override
PolygonOutline 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
PolygonOutline translated(DiagramPoint delta) => PolygonOutline(
  bounds.translate(delta),
  [for (final point in points) point + delta],
);