process method

  1. @override
T process(
  1. T oldValue,
  2. T newValue
)
override

Processes the value through each middleware in the list sequentially.

Implementation

@override

/// Processes the value through each middleware in the list sequentially.
T process(T oldValue, T newValue) {
  T result = newValue;
  for (final middleware in middlewares) {
    result = middleware.process(oldValue, result);
  }
  return result;
}