PropertyValueDelegate class
A delegate class that helps retrieving the value of a node property from multiple sources such as conditions, variables, data, and node values.
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getPredefinedVariableValue<
R extends Object> (String path, {required ScopedValues scopedValues, required Object? nodeValue}) → R? -
Retrieves the value of a predefined variable
name
using givenpath
. Predefined variables are data, index, and item. -
getPropertyValue<
R extends Object> (BaseNode node, String property, {required ScopedValues scopedValues}) → R? -
Retrieves the value of a node
property
from multiple sources. Sources: Conditions, Variables, Data, item, index, and Node Values. -
getPropertyValueFromCondition<
R extends Object> (BaseNode node, String property, {required ScopedValues scopedValues}) → R? -
Retrieves the value of a node
property
from a condition by evaluating the condition if it exists. -
getPropertyValueFromNodeValues<
R extends Object> (BaseNode node, String property, {required ScopedValues scopedValues}) → R? -
Retrieves the value of a node
property
from node values by evaluating the node values if it exists. -
getPropertyValueFromVariable<
R extends Object> (BaseNode node, String property, {required ScopedValues scopedValues}) → R? -
Retrieves the value of a node
property
from a variable by evaluating the variable path if it exists. This also supports predefined variables such as data, index, and item. -
getVariableProperties(
Object? value, VariableType type) → Map< String, dynamic> -
Creates a map of variable properties for given
value
andtype
. This is experimental and is subject to change. It is used for development purposes only. -
getVariableValueFromPath<
R extends Object> (String path, {required ScopedValues scopedValues}) → R? -
Retrieves the value of a variable
path
. This also supports predefined variables such as data, index, and item. -
putValueInJsonPath(
String path, Object? value, Map< String, dynamic> data) → void -
retrievePredefinedVariableValue(
VariableMatch match, ScopedValues scopedValues) → Object? -
substituteJsonPath(
String text, Map< String, dynamic> data) → (Object?, JsonPointer?) -
Substitutes json paths found in
text
with values fromdata
. supported text format: -
substituteVariables(
String text, {required ScopedValues scopedValues, required NullSubstitutionMode nullSubstitutionMode}) → String -
Substitutes variables & data paths used in given
text
with their values.