runFunction method

Future<void> runFunction(
  1. BuildContext context,
  2. ParameterAction action,
  3. Map<ID, Variable> conStringVars,
  4. dynamic inputValue,
)

Implementation

Future<void> runFunction(
  BuildContext context,
  ParameterAction action,
  Map<ID, Variable> conStringVars,
  dynamic inputValue,
) async {
  try {
    if (action.type == 'run_parameter_workflow') {
      await RunParameterWorkflowMethods()
          .runFunction(context, action as RunParameterWorkflowAction);
    }
  } catch (e) {
    context.read<AppLogsCubit>().onNewLog(
          EditorLogEntity(
            id: _uuid.v1(),
            content: e.toString(),
            createdAt: DateTime.now(),
          ),
        );
  }
  return;
}