merge method

  1. @override
PolylineOp merge(
  1. Op<InteractivePolyline<Object>> next
)
override

Merges this operation with other, returning a new operation.

Implementation

@override
PolylineOp merge(Op<InteractivePolyline> next) {
  if (next is MovePointPolylineOp) {
    return MovePointPolylineOp(
        key: key, index: index, from: from, to: next.to);
  }
  return this;
}