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.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

dispose() → void
Releases the resources used by this scene.
FfiNative<Void Function(Pointer<Void>)>(Pointer<Void>)>('Scene::dispose')">@FfiNative<Void Function(Pointer<Void>)>(Pointer<Void>)>('Scene::dispose')
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
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.
toImageSync(int width, int height) Image
Synchronously creates a handle to an image from this scene.
toString() String
A string representation of this object.
inherited

Operators

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