WebViewWidget constructor

WebViewWidget(
  1. {Key? key,
  2. required WebViewController controller,
  3. TextDirection layoutDirection = TextDirection.ltr,
  4. Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{}}
)

Constructs a WebViewWidget.

See WebViewWidget.fromPlatformCreationParams for setting parameters for a specific platform.

Implementation

WebViewWidget({
  Key? key,
  required WebViewController controller,
  TextDirection layoutDirection = TextDirection.ltr,
  Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers =
      const <Factory<OneSequenceGestureRecognizer>>{},
}) : this.fromPlatformCreationParams(
        key: key,
        params: PlatformWebViewWidgetCreationParams(
          controller: controller.platform,
          layoutDirection: layoutDirection,
          gestureRecognizers: gestureRecognizers,
        ),
      );