combine method

ListDiffs<E> combine({
  1. required ListDiffs<E> slot,
  2. ListDiff<E>? change,
})

Add one more change

Implementation

ListDiffs<E> combine({required ListDiffs<E> slot, ListDiff<E>? change}) {
  return ListDiffs<E>.ofOperations(
      [...slot, if (change != null) change].toList(growable: false), args);
}