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

build method

*<Null safety>*
  • @override

dynamic build (dynamic context)

Implementation

@override
Widget build(BuildContext context) {
  return PlatformViewLink(
    viewType: 'fuchsiaView',
    onCreatePlatformView: (params) => controller
      ..connect(hitTestable: hitTestable, focusable: focusable).then((_) {
        params.onPlatformViewCreated(controller.viewId);
      }),
    surfaceFactory: (context, controller) {
      return PlatformViewSurface(
        gestureRecognizers: const <Factory<OneSequenceGestureRecognizer>>{},
        controller: controller,
        hitTestBehavior: hitTestable
            ? PlatformViewHitTestBehavior.opaque
            : PlatformViewHitTestBehavior.transparent,
      );
    },
  );
}