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

FuchsiaViewConnection constructor

*<Null safety>*

FuchsiaViewConnection(dynamic viewHolderToken, {dynamic viewRef, FuchsiaViewConnectionCallback? onViewConnected, FuchsiaViewConnectionCallback? onViewDisconnected, FuchsiaViewConnectionStateCallback? onViewStateChanged, bool usePointerInjection: false})

Constructor.

Implementation

FuchsiaViewConnection(
  this.viewHolderToken, {
  this.viewRef,
  FuchsiaViewConnectionCallback? onViewConnected,
  FuchsiaViewConnectionCallback? onViewDisconnected,
  FuchsiaViewConnectionStateCallback? onViewStateChanged,
  this.usePointerInjection = false,
})  : assert(viewHolderToken.value != null && viewHolderToken.value.isValid),
      assert(
          viewRef?.reference == null || viewRef!.reference.handle!.isValid),
      assert(!usePointerInjection || viewRef?.reference != null),
      _onViewConnected = onViewConnected,
      _onViewDisconnected = onViewDisconnected,
      _onViewStateChanged = onViewStateChanged,
      super(
        viewId: viewHolderToken.value.handle!.handle,
        onViewConnected: _handleViewConnected,
        onViewDisconnected: _handleViewDisconnected,
        onViewStateChanged: _handleViewStateChanged,
        onPointerEvent: _handlePointerEvent,
      );