merge method

  1. @override
MarkerOp merge(
  1. Op<Marker> next
)
override

Merges this operation with other, returning a new operation.

Implementation

@override
MarkerOp merge(Op<Marker> next) {
  if (next is MoveMarkerOp) {
    return MoveMarkerOp(key: key, from: from, to: next.to);
  }
  return this;
}