build method

Scene build ()

Finishes building the scene.

Returns a Scene containing the objects that have been added to this scene builder. The Scene can then be displayed on the screen with Window.render.

After calling this function, the scene builder object is invalid and cannot be used further.

Implementation

Scene build() {
  final Scene scene = Scene._();
  _build(scene);
  return scene;
}