copyWith method

Tuple2<T1, T2> copyWith({
  1. T1? value1,
  2. T2? value2,
})

Create a copy of this Tuple by changing value1 and/or value2.

Implementation

Tuple2<T1, T2> copyWith({
  T1? value1,
  T2? value2,
}) =>
    Tuple2(value1 ?? _value1, value2 ?? _value2);