process method

  1. @override
T process(
  1. T oldValue,
  2. 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;
}