AndroidCustomViewWidget.private constructor
AndroidCustomViewWidget.private({
- Key? key,
- required PlatformWebViewController controller,
- required View customView,
- @visibleForTesting InstanceManager? instanceManager,
- @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;