copyWith method

Tuple7<T0, T1, T2, T3, T4, T5, T6> copyWith({
  1. T0? item0,
  2. T1? item1,
  3. T2? item2,
  4. T3? item3,
  5. T4? item4,
  6. T5? item5,
  7. T6? item6,
})

Creates a copy tuple with the elements from this tuple with the value of each item optionally overridden.

Implementation

Tuple7<T0, T1, T2, T3, T4, T5, T6> copyWith({
  T0? item0,
  T1? item1,
  T2? item2,
  T3? item3,
  T4? item4,
  T5? item5,
  T6? item6,
}) =>
    Tuple7<T0, T1, T2, T3, T4, T5, T6>(
      item0 ?? this.item0,
      item1 ?? this.item1,
      item2 ?? this.item2,
      item3 ?? this.item3,
      item4 ?? this.item4,
      item5 ?? this.item5,
      item6 ?? this.item6,
    );