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