PlatformViewLink constructor
- Key? key,
- required PlatformViewSurfaceFactory surfaceFactory,
- required CreatePlatformViewCallback onCreatePlatformView,
- required String viewType,
Construct a PlatformViewLink widget.
See also:
- PlatformViewSurface for details on the widget returned by
surfaceFactory
. - PlatformViewCreationParams for how each parameter can be used when implementing
createPlatformView
.
Implementation
const PlatformViewLink({
super.key,
required PlatformViewSurfaceFactory surfaceFactory,
required CreatePlatformViewCallback onCreatePlatformView,
required this.viewType,
}) : _surfaceFactory = surfaceFactory,
_onCreatePlatformView = onCreatePlatformView;