dispatchUIFunction method
void
dispatchUIFunction()
Implementation
void dispatchUIFunction(
int instanceId,
int id,
String name,
String functionName,
VoltronArray params,
Promise promise,
) {
final node = findNode(instanceId, id);
final controller = findController(name);
if (node != null && controller != null) {
controller.dispatchFunction(
node.renderViewModel,
functionName,
params,
promise: promise.isCallback() ? promise : null,
);
}
}