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
-
Get a hash code for this object.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
addChildScene(
{Offset offset: Offset.zero, double devicePixelRatio: 1.0, int physicalWidth: 0, int physicalHeight: 0, int sceneToken, 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.
-
build(
) → Scene -
Finishes building the scene.
-
pop(
) → void -
Ends the effect of the most recently pushed operation.
-
pushBackdropFilter(
ImageFilter filter) → void -
Pushes a backdrop filter operation onto the operation stack.
-
pushClipPath(
Path path) → void -
Pushes a path clip operation onto the operation stack.
-
pushClipRect(
Rect rect) → void -
Pushes a rectangular clip operation onto the operation stack.
-
pushClipRRect(
RRect rrect) → void -
Pushes a rounded-rectangular clip operation onto the operation stack.
-
pushColorFilter(
Color color, TransferMode transferMode) → void -
Pushes a color filter operation onto the operation stack.
-
pushOpacity(
int alpha) → void -
Pushes an opacity operation onto the operation stack.
-
pushShaderMask(
Shader shader, Rect maskRect, TransferMode transferMode) → void -
Pushes a shader mask operation onto the operation stack.
-
pushTransform(
Float64List matrix4) → void -
Pushes a transform operation onto the operation stack.
-
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