add method

void add(
  1. T item
)

Adds an item to the list.

Implementation

void add(T item) {
  final newList = List<T>.from(value)..add(item);
  value = newList;
}