create static method

Widget create(
  1. bool onCreate(
    1. PlatformView
    ), {
  2. TextDirection? textDirection,
})

Implementation

static Widget create(bool Function(PlatformView) onCreate,
    {TextDirection? textDirection}) {
  if (Platform.isAndroid) {
    return _AndroidView(
        textDirection, _onViewCreated(onCreate));
  } else {
    final widget = UiKitView(
      viewType: viewType,
      layoutDirection: textDirection,
      onPlatformViewCreated: _onViewCreated(onCreate),
    );

    return widget;
  }
}