process method

  1. @override
ProcessedArg process(
  1. JsonWidgetRegistry registry,
  2. dynamic arg,
  3. Set<String>? jsonWidgetListenVariables
)
override

Process passed arg into ProcessedArg. The registry is giving functions and variables information context for the processing.

Passed jsonWidgetListenVariables is the information about variables that JsonWidgetData depends on. Passing that should be make the ArgProcessor to stop calculating these variable names. It is treated as a optimization.

ProcessedArg contains info about arg real value and variable names that it depends on.

Implementation

@override
ProcessedArg process(
  JsonWidgetRegistry registry,
  dynamic arg,
  Set<String>? jsonWidgetListenVariables,
) {
  final resultListenVariables = jsonWidgetListenVariables ?? <String>{};
  return ProcessedArg(
    jsonWidgetListenVariables: resultListenVariables,
    value: arg,
  );
}