after method

void after(
  1. PipelineFunction existingFn,
  2. PipelineFunction newFn
)

Implementation

void after(PipelineFunction existingFn, PipelineFunction newFn) {
  _warnIfFunctionNotRegistered(newFn);
  var pos = _stack.indexOf(existingFn);
  if (pos == -1) {
    throw Exception('Cannot find existingFn');
  }
  _stack.insert(pos + 1, newFn);
}