invoke method
Invokes the RunnableMap on the given input
.
input
- the input to invoke the RunnableMap on.options
- the options to use when invoking the RunnableMap.
Implementation
@override
Future<Map<String, dynamic>> invoke(
final RunInput input, {
final RunnableOptions? options,
}) async {
final output = <String, dynamic>{};
await Future.forEach(steps.entries, (final entry) async {
output[entry.key] = await entry.value.invoke(
input,
options: entry.value.getCompatibleOptions(options),
);
});
return output;
}