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