Google is committed to advancing racial equity for Black communities. See how.

ChildViewConnection class

A connection to a child view. It can be used to construct a ChildView widget that will display the view's contents on their own layer.

Constructors

ChildViewConnection (dynamic viewHolderToken, {dynamic viewRef, ChildViewConnectionCallback onAvailable, ChildViewConnectionCallback onUnavailable, ChildViewConnectionStateCallback onStateChanged, bool usePlatformView: false})

Creates this connection from a ViewHolderToken.

Properties

hashCodeint

The hash code for this object. ...
read-only, inherited

onAvailableChildViewConnectionCallback

Callback when the connection to child's view is established.
final

onStateChangedChildViewConnectionStateCallback

Callback when the child view's state changes.
final

onUnavailableChildViewConnectionCallback

Callback when the child's view is disconnected.
final

runtimeTypeType

A representation of the runtime type of the object.
read-only, inherited

sceneHost → dynamic

SceneHost used to reference and render content from a remote Scene.
read-only

usePlatformViewbool

Whether to use PlatformView feature of Flutter.
read / write

viewHolderToken → dynamic

ViewHolderToken of the child view.
final

viewIdint

Gets the view id from viewHolderToken.
read-only

viewRef → dynamic

The optional ViewRef of the view.
final

Methods

connect({bool hitTestable, bool focusable}) Future<void>

Called by ChildViewRenderBox2 when the platform view is ready to be initialized.

dispose() void

Releases native resources held by SceneHost object in Flutter engine.

noSuchMethod(Invocation invocation) dynamic

Invoked when a non-existent method or property is accessed. ...
inherited

requestFocus() void

Requests that focus be transferred to the remote Scene represented by this connection.

setChildProperties(double width, double height, double insetTop, double insetRight, double insetBottom, double insetLeft, {bool focusable: true}) void

Sets properties on the remote Scene represented by this connection.

setViewProperties({bool focusable: true, bool hitTestable: true}) void

Sets properties on the remote Scene represented by this connection. ...

toString() String

Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool

The equality operator. ...
inherited