CommonWebView constructor
const
CommonWebView({
- Key? key,
- URLRequest? initialUrlRequest,
- String? initialUrl,
- void onLoadStart(
- InAppWebViewController,
- Uri?
- void onLoadStop(
- InAppWebViewController,
- Uri?
- void onWebViewCreated(
- InAppWebViewController
- Future<
ServerTrustAuthResponse?> onReceivedServerTrustAuthRequest(- InAppWebViewController,
- URLAuthenticationChallenge
- Future<
NavigationActionPolicy> shouldOverrideUrlLoading(- InAppWebViewController,
- NavigationAction
- Future<
PermissionResponse?> onPermissionRequest(- InAppWebViewController,
- PermissionRequest
- List<
JavaScriptHandlerConfig> javaScriptHandlers = const [], - Widget? loadingWidget,
- Widget? completedWidget,
- bool showLoading = false,
- bool showCompleted = false,
- bool enableUserAgentManagement = true,
- String? customUserAgentSuffix,
- bool enableFileDownload = true,
- bool enablePermissionRequests = false,
- dynamic onUrlChanged()?,
- dynamic onCanGoBackChanged()?,
Implementation
const CommonWebView({
super.key,
this.initialUrlRequest,
this.initialUrl,
this.onLoadStart,
this.onLoadStop,
this.onWebViewCreated,
this.onReceivedServerTrustAuthRequest,
this.shouldOverrideUrlLoading,
this.onPermissionRequest,
this.javaScriptHandlers = const [],
this.loadingWidget,
this.completedWidget,
this.showLoading = false,
this.showCompleted = false,
this.enableUserAgentManagement = true,
this.customUserAgentSuffix,
this.enableFileDownload = true,
this.enablePermissionRequests = false,
this.onUrlChanged,
this.onCanGoBackChanged,
});