addFirst method

void addFirst(
  1. T item
)

Adds item to the end of the list.

Implementation

void addFirst(T item) => value = [item, ...value];