CustomWebView constructor

CustomWebView({
  1. Key? key,
  2. required String initialUrl,
  3. Map<String, String>? headers = const {},
  4. dynamic onPageLoaded(
    1. Uri? url
    )?,
  5. dynamic onPageLoading(
    1. Uri? url
    )?,
  6. dynamic onPageError(
    1. Uri? url
    )?,
  7. Color? backgroundColor,
  8. bool cacheEnabled = false,
  9. Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
  10. Future<NavigationDecision> onNavigationRequest(
    1. NavigationRequest
    )?,
  11. String? body,
  12. bool enableZoom = false,
  13. WebViewController? controller,
  14. WebViewCookieManager? cookieManager,
})

Implementation

CustomWebView({
  Key? key,
  required this.initialUrl,
  // this.onWebViewCreated,
  this.headers = const {},
  this.onPageLoaded,
  this.onPageLoading,
  this.onPageError,
  this.backgroundColor,
  this.cacheEnabled = false,
  // this.onCloseWindow,
  this.gestureRecognizers,
  this.onNavigationRequest,
  this.body,
  this.enableZoom = false,
  // this.onCreateWindow,
  WebViewController? controller,
  WebViewCookieManager? cookieManager,
}) : super(key: key) {
  this.controller = controller ?? WebViewController();
  this.cookieManager = cookieManager ?? WebViewCookieManager();
}