add method

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

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

The list must be growable.

Implementation

@override
void add(T element) {
  if (lock) return super.add(element);
  lock = true;
  super.add(element);
  added = {super.length - 1: element};
  removed = const {};
  changed = const {};
  notifyListeners();
}