ChildViewConnection class

*<Null safety>*

Constructors

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

Creates this connection from a ViewHolderToken.

Properties

hashCode → int

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

runtimeType → Type

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

usePlatformView ↔ bool

Whether to use PlatformView feature of Flutter.
read / write

viewHolderToken → dynamic

ViewHolderToken of the child view.
final

viewId → int

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() Future<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