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