CustomWebView constructor
CustomWebView({
- Key? key,
- required String initialUrl,
- Map<
String, String> ? headers = const {}, - dynamic onPageLoaded(
- Uri? url
- dynamic onPageLoading(
- Uri? url
- dynamic onPageError(
- Uri? url
- Color? backgroundColor,
- bool cacheEnabled = false,
- Set<
Factory< ? gestureRecognizers,OneSequenceGestureRecognizer> > - String? body,
- bool enableZoom = false,
- WebViewController? controller,
- 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();
}