Scene class Null safety

An opaque object representing a composited scene.

To create a Scene object, use a SceneBuilder.

Scene objects can be displayed on the screen using the FlutterView.render method.


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


dispose() → void
Releases the resources used by this scene.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toImage(int width, int height) Future<Image>
Creates a raster image representation of the current state of the scene. This is a slow operation that is performed on a background thread.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.