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 MovePolylineOp) {
    return MovePolylineOp(key: key, from: from, to: next.to);
  }
  return this;
}