processArgs method
Process JsonWidgetData args by using _argProcessors
.
Default processors are definied in ArgProcessors.defaults.
Passing listenVariables
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>? listenVariables) {
return _argProcessors
.firstWhere(
(parser) => parser.support(args),
orElse: () => RawArgProcessor(),
)
.process(this, args, listenVariables);
}