push<T> static method

List<T> push<T>(
  1. Iterable<T> list,
  2. T value
)

Returns a new list with value appended at the end.

Implementation

static List<T> push<T>(Iterable<T> list, T value) => [...list, value];