withLast<T> method
(T1, T)
withLast<T>(
- T value
Returns a new tuple with the last element replaced by value
.
Implementation
(T1, T) withLast<T>(T value) => ($1, value);
Returns a new tuple with the last element replaced by value
.
(T1, T) withLast<T>(T value) => ($1, value);