WebViewAndroidWidget constructor

const WebViewAndroidWidget({
  1. Key? key,
  2. required CreationParams creationParams,
  3. required bool useHybridComposition,
  4. required WebViewPlatformCallbacksHandler callbacksHandler,
  5. required JavascriptChannelRegistry javascriptChannelRegistry,
  6. required Widget onBuildWidget(
    1. WebViewAndroidPlatformController controller
    ),
  7. @visibleForTesting WebViewProxy webViewProxy = const WebViewProxy(),
  8. @visibleForTesting FlutterAssetManager flutterAssetManager = const android_webview.FlutterAssetManager(),
  9. @visibleForTesting WebStorage? webStorage,
})

Constructs a WebViewAndroidWidget.

Implementation

const WebViewAndroidWidget({
  Key? key,
  required this.creationParams,
  required this.useHybridComposition,
  required this.callbacksHandler,
  required this.javascriptChannelRegistry,
  required this.onBuildWidget,
  @visibleForTesting this.webViewProxy = const WebViewProxy(),
  @visibleForTesting
      this.flutterAssetManager = const android_webview.FlutterAssetManager(),
  @visibleForTesting this.webStorage,
}) : super(key: key);