updateRootRepaintBoundary method

void updateRootRepaintBoundary(
  1. GlobalKey<State<StatefulWidget>> key
)

更新根节点key 会用于屏幕截图, 若未指定会寻找最顶部一个RenderRepaintBoundary进行截图

Implementation

void updateRootRepaintBoundary(GlobalKey key) {
  _rootRepaintBoundaryKey = key;
}