setValue method
Add an occurrence of a value
Implementation
void setValue(int value) {
int confidence = _values[value] ?? 0;
_values[value] = ++confidence;
}
Add an occurrence of a value
void setValue(int value) {
int confidence = _values[value] ?? 0;
_values[value] = ++confidence;
}