update method

void update(
  1. List<T> value, {
  2. bool doNotifyListeners = true,
})

Setter of the current list of the informer.

Implementation

void update(
  List<T> value, {
  bool doNotifyListeners = true,
}) {
  if (_forceUpdate || _value != value) {
    _value = value;
    _checkAndRemoveLowerDifference();
    if (doNotifyListeners) {
      notifyListeners();
    }
  }
}