addAndReturn method

List<T> addAndReturn(
  1. T t
)

New list with t added at the end.

Implementation

List<T> addAndReturn(T t) => <T>[...this, t];