calculateNodeLayout method

int calculateNodeLayout(
  1. int instanceId,
  2. int nodeId,
  3. FlexLayoutParams layoutParams
)

Implementation

int calculateNodeLayout(
  int instanceId,
  int nodeId,
  FlexLayoutParams layoutParams,
) {
  LogUtils.dBridge(
    'ID:$nodeId, call calculate node layout, page:$instanceId, parent layout:$layoutParams',
  );
  if (_isBridgeInit) {
    return _renderContext.virtualNodeManager.measure(
      instanceId,
      nodeId,
      layoutParams,
    );
  }
  return layoutParams.defaultOutput();
}