# SceneBuilder class

Builds a Scene containing the given visuals.

A Scene can then be rendered using Window.render.

To draw graphical operations onto a Scene, first create a Picture using a PictureRecorder and a Canvas, and then add it to the scene using addPicture.

## Constructors

SceneBuilder()
  Creates an empty SceneBuilder object.

## Properties

hashCode → int
  The hash code for this object. [...]
  read-only, inherited
runtimeType → Type
  A representation of the runtime type of the object.
  read-only, inherited

## Methods

addChildScene({Offset offset: Offset.zero, double width: 0.0, double height: 0.0, SceneHost sceneHost, bool hitTestable: true }) → void
  (Fuchsia-only) Adds a scene rendered by another application to the scene for this application.
addPerformanceOverlay(int enabledOptions, Rect bounds) → void
  Adds an object to the scene that displays performance statistics. [...]
addPicture(Offset offset, Picture picture, { bool isComplexHint: false, bool willChangeHint: false }) → void
  Adds a Picture to the scene. [...]
addPlatformView(int viewId, { Offset offset: Offset.zero, double width: 0.0, double height: 0.0 }) → void
  Adds a platform view (e.g an iOS UIView) to the scene. [...]
addRetained(EngineLayer retainedLayer) → EngineLayer
  Add a retained engine layer subtree from previous frames. [...]
addTexture(int textureId, { Offset offset: Offset.zero, double width: 0.0, double height: 0.0, bool freeze: false }) → void
  Adds a backend texture to the scene. [...]
build() → Scene
  Finishes building the scene. [...]
pop() → void
  Ends the effect of the most recently pushed operation. [...]
pushBackdropFilter(ImageFilter filter) → EngineLayer
  Pushes a backdrop filter operation onto the operation stack. [...]
pushClipPath(Path path, { Clip clipBehavior: Clip.antiAlias }) → EngineLayer
  Pushes a path clip operation onto the operation stack. [...]
pushClipRect(Rect rect, { Clip clipBehavior: Clip.antiAlias }) → EngineLayer
  Pushes a rectangular clip operation onto the operation stack. [...]
pushClipRRect(RRect rrect, { Clip clipBehavior: Clip.antiAlias }) → EngineLayer
  Pushes a rounded-rectangular clip operation onto the operation stack. [...]
pushColorFilter(Color color, BlendMode blendMode) → EngineLayer
  Pushes a color filter operation onto the operation stack. [...]
pushOffset(double dx, double dy) → EngineLayer
  Pushes an offset operation onto the operation stack. [...]
pushOpacity(int alpha, { Offset offset: Offset.zero }) → EngineLayer
  Pushes an opacity operation onto the operation stack. [...]
pushPhysicalShape({Path path, double elevation, Color color, Color shadowColor, Clip clipBehavior: Clip.none }) → EngineLayer
  Pushes a physical layer operation for an arbitrary shape onto the operation stack. [...]
pushShaderMask(Shader shader, Rect maskRect, BlendMode blendMode) → EngineLayer
  Pushes a shader mask operation onto the operation stack. [...]
pushTransform(Float64List matrix4) → EngineLayer
  Pushes a transform operation onto the operation stack. [...]
setCheckerboardOffscreenLayers(bool checkerboard) → void
  Sets whether the compositor should checkerboard layers that are rendered to offscreen bitmaps. [...]
setCheckerboardRasterCacheImages(bool checkerboard) → void
  Sets whether the raster cache should checkerboard cached entries. This is only useful for debugging purposes. [...]
setRasterizerTracingThreshold(int frameInterval) → void
  Sets a threshold after which additional debugging information should be recorded. [...]
noSuchMethod(Invocation invocation) → dynamic
  Invoked when a non-existent method or property is accessed. [...]
  inherited
toString() → String
  Returns a string representation of this object.
  inherited

## Operators

operator ==(dynamic other) → bool
  The equality operator. [...]
  inherited