add method

void add(
  1. T toAdd
)

Adds value to the end of this list, extending the length by one. The list must be growable.

Notifies listeners afterwards.

Implementation

void add(T toAdd) => update(() => _list.add(toAdd));