CommonWebView constructor

const CommonWebView({
  1. Key? key,
  2. URLRequest? initialUrlRequest,
  3. String? initialUrl,
  4. void onLoadStart(
    1. InAppWebViewController,
    2. Uri?
    )?,
  5. void onLoadStop(
    1. InAppWebViewController,
    2. Uri?
    )?,
  6. void onWebViewCreated(
    1. InAppWebViewController
    )?,
  7. Future<ServerTrustAuthResponse?> onReceivedServerTrustAuthRequest(
    1. InAppWebViewController,
    2. URLAuthenticationChallenge
    )?,
  8. Future<NavigationActionPolicy> shouldOverrideUrlLoading(
    1. InAppWebViewController,
    2. NavigationAction
    )?,
  9. Future<PermissionResponse?> onPermissionRequest(
    1. InAppWebViewController,
    2. PermissionRequest
    )?,
  10. List<JavaScriptHandlerConfig> javaScriptHandlers = const [],
  11. Widget? loadingWidget,
  12. Widget? completedWidget,
  13. bool showLoading = false,
  14. bool showCompleted = false,
  15. bool enableUserAgentManagement = true,
  16. String? customUserAgentSuffix,
  17. bool enableFileDownload = true,
  18. bool enablePermissionRequests = false,
  19. dynamic onUrlChanged(
    1. String
    )?,
  20. dynamic onCanGoBackChanged(
    1. bool
    )?,
})

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,
});