executeOne static method

Future executeOne(
  1. IContext? context,
  2. dynamic component,
  3. Parameters args
)

Executes specific component.

To be executed components must implement IExecutable interface. If they don't the call to this method has no effect.

  • context (optional) execution context to trace execution through call chain.
  • component the component that is to be executed.
  • args execution arguments. Return Future that receives execution result or error.

See IExecutable See Parameters

Implementation

static Future<dynamic> executeOne(
    IContext? context, component, Parameters args) async {
  if (component is IExecutable) {
    return await component.execute(context, args);
  }
}