copy method

Editor copy()

Creates a copy of this Editor instance with a new list of points. This avoids modifying the original data directly.

Implementation

Editor copy() => Editor([...points]);