processArgs method

ProcessedArg processArgs(
  1. dynamic args,
  2. Set<String>? jsonWidgetListenVariables
)

Process JsonWidgetData args by using _argProcessors. Default processors are definied in ArgProcessors.defaults. Passing jsonWidgetListenVariables is skipping the step of calculating these variables during processing. Processing is mostly about executing pipeline of processors and finding first supported one. In case of not finding any processor RawArgProcessoris used instead.

Implementation

ProcessedArg processArgs(
    dynamic args, Set<String>? jsonWidgetListenVariables) {
  return _argProcessors
      .firstWhere(
        (parser) => parser.support(args),
        orElse: () => RawArgProcessor(),
      )
      .process(this, args, jsonWidgetListenVariables);
}