AndroidCustomViewWidget.private constructor

  1. @visibleForTesting
AndroidCustomViewWidget.private({
  1. Key? key,
  2. required PlatformWebViewController controller,
  3. required View customView,
  4. @visibleForTesting InstanceManager? instanceManager,
  5. @visibleForTesting PlatformViewsServiceProxy platformViewsServiceProxy = const PlatformViewsServiceProxy(),
})

Creates a AndroidCustomViewWidget.

The AndroidCustomViewWidget should only be instantiated internally. This constructor is visible for testing purposes only and should never be called externally.

Implementation

@visibleForTesting
AndroidCustomViewWidget.private({
  super.key,
  required this.controller,
  required this.customView,
  @visibleForTesting InstanceManager? instanceManager,
  @visibleForTesting
  this.platformViewsServiceProxy = const PlatformViewsServiceProxy(),
}) : instanceManager =
          instanceManager ?? android_webview.JavaObject.globalInstanceManager;