callInternal method

  1. @override
Future<ChainValues> callInternal(
  1. ChainValues inputs
)
override

Call method to be implemented by subclasses (called by call). This is where the core logic of the chain should be implemented.

Implementation

@override
Future<ChainValues> callInternal(final ChainValues inputs) {
  final docs = inputs[inputKey] as List<Document>;
  final otherInputKeys = inputs.keys.toSet().difference({inputKey});
  final otherInputs = {
    for (final key in otherInputKeys) key: inputs[key],
  };
  return combineDocs(docs, inputs: otherInputs);
}