copyWith method

Pair<T, U> copyWith({
  1. T? first,
  2. U? second,
})

Implementation

Pair<T, U> copyWith({
  T? first,
  U? second,
}) {
  return Pair<T, U>(
    first ?? this.first,
    second ?? this.second,
  );
}