FuchsiaViewController class

*[<Null safety>](https://dart.dev/null-safety)*

Implementers

Constructors

FuchsiaViewController ({required int viewId, FuchsiaViewConnectionCallback? onViewConnected, FuchsiaViewConnectionCallback? onViewDisconnected, FuchsiaViewConnectionStateCallback? onViewStateChanged, FuchsiaPointerEventsCallback? onPointerEvent})

Constructor.

Properties

connected → bool

Returns true when platform view is connected.
read-only

hashCode → int

The hash code for this object.
read-onlyinherited

onPointerEventFuchsiaPointerEventsCallback?

Callback when pointer events are dispatched on top of child view.
final

onViewConnectedFuchsiaViewConnectionCallback?

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

onViewDisconnectedFuchsiaViewConnectionCallback?

Callback when the child's view is disconnected from view tree.
final

onViewStateChangedFuchsiaViewConnectionStateCallback?

Callback when the child view's state changes.
final

runtimeType → Type

A representation of the runtime type of the object.
read-onlyinherited

viewId → int

The raw value of the ViewHolderToken or ViewportCreationToken where this view is attached.
final

viewport → dynamic

Returns the viewport rect of the child view in parent's coordinates.
read-only

whenConnected → Future

The future that completes when the platform view is connected.
read-only

Methods

clearFocus() Future<void>
connect({bool hitTestable = true, bool focusable = true, dynamic viewOcclusionHint = Rect.zero}) Future<void>

Connects to the platform view given it's viewId.

dispatchPointerEvent(dynamic event) Future<void>

Dispatch pointer events for the child view. This MUST NOT be called directly.

dispose() Future<void>

Dispose relevant resources when the view is take OffStage by Flutter.

noSuchMethod(Invocation invocation) dynamic

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

requestFocus(int viewRef) Future<void>

Requests that focus be transferred to the child view referred to by viewRef. Note that this method should only be used with Scenics legacy GFX API

requestFocusById(int viewId) Future<void>

Requests that focus be transferred to the child view referred to by viewId. Note that this method should only be used with the Flatland API

toString() String

A string representation of this object.
inherited

update({bool focusable = true, bool hitTestable = true, dynamic viewOcclusionHint = Rect.zero}) Future<void>

Updates properties on the platform view given it's viewId.

Operators

operator ==(Object other) bool

The equality operator.
inherited