buildScene method
Consider this layer as the root and build a scene (a tree of layers) in the engine.
Implementation
ui.Scene buildScene(ui.SceneBuilder builder) {
updateSubtreeNeedsAddToScene();
addToScene(builder);
return builder.build();
}