updateNodeSize method

Future updateNodeSize(
  1. int rootId, {
  2. int nodeId = 0,
  3. double width = 0,
  4. double height = 0,
})

更新节点尺寸,注意,当不传入nodeId时等同于updateRootSize

Implementation

Future updateNodeSize(
  int rootId, {
  int nodeId = 0,
  double width = 0,
  double height = 0,
}) async {
  if (!_isBridgeInit) {
    return false;
  }
  await VoltronRenderApi.updateNodeSize(
    _renderContext.renderManager.nativeRenderManagerId,
    rootId,
    nodeId,
    width,
    height,
  );
}