PNDelegate typedef
PNDelegate =
Action Function(dynamic context, dynamic data)
Defines a signature of external function used in processing tree
Describes function which builds processing tree. Argument context
refers
to object passed to TreeProcessor.process as an argument, it's passed
to all nodes when they are executed, and should be used to store state of
execution (values, results, etc.). Second argument data
is an object added
to execution node at moment of creation node. It should be considered as
private data (constant if possible) needed by execution node. As a result
of processing action telling what should be done in next step is returned.
Implementation
typedef PNDelegate = Action Function(dynamic context, dynamic data);