updateCurrent method
Provides current list and updates the list of the informer with received list.
Implementation
void updateCurrent(
List<T> Function(List<T> current) current, {
bool doNotifyListeners = true,
}) {
final newValue = current(List.from(_value));
if (_forceUpdate || !listEquals(_value, newValue)) {
_value = newValue;
if (doNotifyListeners) {
notifyListeners();
}
}
}