getApisToLoadForCanvas function
Returns a list of api ids that should be loaded for a given canvasNode
.
Implementation
Set<String> getApisToLoadForCanvas(CanvasNode canvasNode) {
return canvasNode.reactions
.whereTriggerType(TriggerType.load)
.map((e) => e.action)
.whereType<ApiCallAction>()
.map((e) => e.apiId)
.whereNotNull()
.toSet();
}