add method

void add(
  1. E 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(E toAdd) => update(() => _list.add(toAdd));