addChildrenToScene method
Uploads all of this layer's children to the engine.
This method is typically used by addToScene to insert the children into the scene. Subclasses of ContainerLayer typically override addToScene to apply effects to the scene using the SceneBuilder API, then insert their children using addChildrenToScene, then reverse the aforementioned effects before returning from addToScene.
Implementation
void addChildrenToScene(ui.SceneBuilder builder, [Offset childOffset = Offset.zero]) {
Layer child = firstChild;
while (child != null) {
if (childOffset == Offset.zero) {
child._addToSceneWithRetainedRendering(builder);
} else {
child.addToScene(builder, childOffset);
}
child = child.nextSibling;
}
}