invoke method

  1. @override
Future<Map<String, dynamic>> invoke(
  1. RunInput input, {
  2. RunnableOptions? options,
})
override

Invokes the RunnableMap on the given input.

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;
}