process method
- T oldValue,
- T newValue
override
Implementation
@override
T process(T oldValue, T newValue) {
if (_history.isEmpty || _history.last != oldValue) {
_history.add(oldValue);
if (_history.length > maxHistory) {
_history.removeAt(0);
}
}
return newValue;
}