operator + method

Delta operator +(
  1. Delta other
)

This method joins two Delta together.

Implementation

Delta operator +(Delta other) {
  var operations = [..._operations];
  if (other._operations.isNotEmpty) {
    operations.add(other._operations[0]);
    operations.addAll(other._operations.sublist(1));
  }
  return Delta(operations: operations);
}