copy method

ExecutedData<A, B> copy({
  1. Iterable<A>? base,
  2. Iterable<B>? modified,
})

Creates a copy of the current ExecutedData with optional new base or modified data.

Implementation

ExecutedData<A, B> copy({Iterable<A>? base, Iterable<B>? modified}) {
  return ExecutedData(
      base: base ?? this.base, modified: modified ?? this.modified);
}