getPage method
Implementation
Widget getPage(ID id) {
if (isInEditor) {
final componentNodes = inEditorPages[id]?.nodes;
assert(componentNodes != null);
final rootNode = const NodeRendering().renderTree(componentNodes!);
return rootNode.toWidget(
context: this,
state: WidgetState(node: rootNode, loop: 0),
);
} else {
assert(forPlayPages[id] != null);
return forPlayPages[id]!.call();
}
}