H5WebView constructor
H5WebView({
- Key? key,
- String url = "",
- String htmlData = "",
- bool isEnabledDebug = false,
- OnOverloadUrl? overloadingUrl,
- Map<
String, String> ? headers, - Set<
JavascriptChannel> ? javascriptChannels, - bool withJavascript = true,
- String? userAgent,
- bool withZoom = false,
- bool withDisplayZoomControls = false,
- Widget? initialChild,
- OnWebInitializedCallback? initializedCallback,
- OnWebBack? backListener,
- bool clearCache = false,
- bool clearCookies = false,
- OnSchemeUrl? schemeCall,
- OnWebLoadFinished? onWebLoadFinished,
- OnWebPageChanged? onPageChanged,
- OnTitleCall? onTitleCall,
- OnWebLoadCompletedCall? loadCompletedCall,
- bool isLoading = true,
- String? loadingText,
- OnUpdateTitleCall? titleCall,
- bool isOnlyChromeUserAgent = false,
Implementation
H5WebView({
Key? key,
this.url = "",
this.htmlData = "",
this.isEnabledDebug = false,
this.overloadingUrl,
this.headers,
this.javascriptChannels,
this.withJavascript = true,
this.userAgent,
this.withZoom = false,
this.withDisplayZoomControls = false,
this.initialChild,
this.initializedCallback,
this.backListener,
this.clearCache = false,
this.clearCookies = false,
this.schemeCall,
this.onWebLoadFinished,
this.onPageChanged,
this.onTitleCall,
this.loadCompletedCall,
this.isLoading = true,
this.loadingText,
this.titleCall,
this.isOnlyChromeUserAgent = false,
}) : super(key: key);