ExpressionArgProcessor class

Processor that integrates https://pub.dev/packages/expressions library syntax with JsonWidgetRegistry variables and functions. All expressions should be placed in ${.*} syntax.

A few examples:

  • ${var1} - find the value of 'var1' variable inside of JsonWidgetRegistry and return 'var1' it's name as the listen variable names.
  • ${print('var1 value is: ' + var1)} - executes 'print' function from JsonWidgetRegistry. As the arg for that function it takes contatenation of 'var1 value is: ' string and the value of 'var1'.

Listen variable names for such a expression is 'var1'.

Implemented types

Constructors

ExpressionArgProcessor()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
process(JsonWidgetRegistry registry, dynamic arg, Set<String>? jsonWidgetListenVariables) ProcessedArg
Process passed arg into ProcessedArg. The registry is giving functions and variables information context for the processing.
override
support(dynamic arg) bool
Used to give the information if specified arg is supported by ArgProcessor.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited