clearValues method

void clearValues()

Removes all variable values from the registry

Implementation

void clearValues() {
  var keys = Set<String>.from(_values.keys);
  _values.clear();

  keys.forEach(
    (element) => _valueStreamController?.add(
      WidgetValueChanged(
        id: element,
        originator: null,
        value: null,
      ),
    ),
  );
}