concat method
Concatenates other
with this delta and returns the result.
Implementation
Delta concat(Delta other) {
final Delta result = new Delta.from(this);
if (other.isNotEmpty) {
// In case first operation of other can be merged with last operation in
// our list.
result.push(other._operations.first);
result._operations.addAll(other._operations.sublist(1));
}
return result;
}