withLast<T> method

Tuple6<T1, T2, T3, T4, T5, T> withLast<T>(
  1. T value
)

Returns a new tuple with the last element replaced by value.

Implementation

Tuple6<T1, T2, T3, T4, T5, T> withLast<T>(T value) =>
    Tuple6(first, second, third, fourth, fifth, value);