PlatformViewLink constructor

const PlatformViewLink(
  1. {Key? key,
  2. required PlatformViewSurfaceFactory surfaceFactory,
  3. required CreatePlatformViewCallback onCreatePlatformView,
  4. required String viewType}
)

Construct a PlatformViewLink widget.

See also:

Implementation

const PlatformViewLink({
  super.key,
  required PlatformViewSurfaceFactory surfaceFactory,
  required CreatePlatformViewCallback onCreatePlatformView,
  required this.viewType,
  }) : _surfaceFactory = surfaceFactory,
       _onCreatePlatformView = onCreatePlatformView;