copyWith method

Tuple1<T> copyWith(
  1. T? item
)

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

Implementation

Tuple1<T> copyWith(T? item) => Tuple1<T>(item ?? this.item);