add method

  1. @override
void add (
  1. T element
)

Adds value to the end of this list, extending the length by one.

Throws an UnsupportedError if the list is fixed-length.

Implementation

@override
void add(T element) {
  _context.conditionallyRunInAction(() {
    final index = _list.length;
    _list.add(element);
    _notifyListUpdate(index, [element], null);
  }, _atom);
}