Google celebrates Hispanic Heritage Month. See how.

FuchsiaViewConnection.flatland constructor

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

FuchsiaViewConnection.flatland(dynamic viewportCreationToken, {dynamic viewRef, FuchsiaViewConnectionCallback? onViewConnected, FuchsiaViewConnectionCallback? onViewDisconnected, FuchsiaViewConnectionStateCallback? onViewStateChanged, bool usePointerInjection2 = false, bool useFlatland = true})

Implementation

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