revert method
Reverts this operation from the current list.
Modifies current in place and returns the operation itself (or reversed op).
Implementation
@override
PolylineOp revert(List<InteractivePolyline> list) {
if (removed != null && index >= 0) {
final idx = index.clamp(0, list.length);
list.insert(idx, removed!);
}
return this;
}