updateNodeSize method
更新节点尺寸,注意,当不传入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,
);
}