revert method

  1. @override
PolylineOp revert(
  1. List<InteractivePolyline<Object>> list
)
override

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) {
  list.removeWhere((p) => p.key == polyline.key);
  return this;
}