@@ -134,11 +136,12 @@ class InAppWebViewInitialData {
///The URL to use as the history entry. The default value is `about:blank`. If non-null, this must be a valid URL. This parameter is used only on Android.
StringhistoryUrl;
InAppWebViewInitialData({@requiredthis.data,
this.mimeType="text/html",
this.encoding="utf8",
this.baseUrl="about:blank",
this.historyUrl="about:blank"});
InAppWebViewInitialData(
{@requiredthis.data,
this.mimeType="text/html",
this.encoding="utf8",
this.baseUrl="about:blank",
this.historyUrl="about:blank"});
Map<String,String>toMap(){
return{
...
...
@@ -196,12 +199,13 @@ class WebResourceRequest {
///**NOTE**: Available on Android 21+. For Android < 21 it will be always `false`.
boolisRedirect;
WebResourceRequest({@requiredthis.url,
this.headers,
this.method,
this.hasGesture,
this.isForMainFrame,
this.isRedirect});
WebResourceRequest(
{@requiredthis.url,
this.headers,
this.method,
this.hasGesture,
this.isForMainFrame,
this.isRedirect});
Map<String,dynamic>toMap(){
return{
...
...
@@ -255,12 +259,13 @@ class WebResourceResponse {
///**NOTE**: Available on Android 21+. For Android < 21 it won't be used.
StringreasonPhrase;
WebResourceResponse({this.contentType="",
this.contentEncoding="utf-8",
this.data,
this.headers,
this.statusCode,
this.reasonPhrase});
WebResourceResponse(
{this.contentType="",
this.contentEncoding="utf-8",
this.data,
this.headers,
this.statusCode,
this.reasonPhrase});
Map<String,dynamic>toMap(){
return{
...
...
@@ -294,9 +299,10 @@ class CustomSchemeResponse {
///Content-Enconding of the data, such as `utf-8`.
StringcontentEnconding;
CustomSchemeResponse({@requiredthis.data,
@requiredthis.contentType,
this.contentEnconding='utf-8'});
CustomSchemeResponse(
{@requiredthis.data,
@requiredthis.contentType,
this.contentEnconding='utf-8'});
Map<String,dynamic>toMap(){
return{
...
...
@@ -463,10 +469,11 @@ class JsAlertResponse {
///Action used to confirm that the user hit confirm button.
JsAlertResponseActionaction;
JsAlertResponse({this.message="",
this.handledByClient=false,
this.confirmButtonTitle="",
this.action=JsAlertResponseAction.CONFIRM});
JsAlertResponse(
{this.message="",
this.handledByClient=false,
this.confirmButtonTitle="",
this.action=JsAlertResponseAction.CONFIRM});
Map<String,dynamic>toMap(){
return{
...
...
@@ -521,11 +528,12 @@ class JsConfirmResponse {
///Action used to confirm that the user hit confirm or cancel button.
JsConfirmResponseActionaction;
JsConfirmResponse({this.message="",
this.handledByClient=false,
this.confirmButtonTitle="",
this.cancelButtonTitle="",
this.action=JsConfirmResponseAction.CANCEL});
JsConfirmResponse(
{this.message="",
this.handledByClient=false,
this.confirmButtonTitle="",
this.cancelButtonTitle="",
this.action=JsConfirmResponseAction.CANCEL});
Map<String,dynamic>toMap(){
return{
...
...
@@ -587,13 +595,14 @@ class JsPromptResponse {
///Action used to confirm that the user hit confirm or cancel button.
@@ -1353,12 +1379,12 @@ class AndroidMixedContentMode {
///In this mode, the WebView will allow a secure origin to load content from any other origin, even if that origin is insecure.
///This is the least secure mode of operation for the WebView, and where possible apps should not set this mode.
staticconstMIXED_CONTENT_ALWAYS_ALLOW=
constAndroidMixedContentMode._internal(0);
constAndroidMixedContentMode._internal(0);
///In this mode, the WebView will not allow a secure origin to load content from an insecure origin.
///This is the preferred and most secure mode of operation for the WebView and apps are strongly advised to use this mode.
staticconstMIXED_CONTENT_NEVER_ALLOW=
constAndroidMixedContentMode._internal(1);
constAndroidMixedContentMode._internal(1);
///In this mode, the WebView will attempt to be compatible with the approach of a modern web browser with regard to mixed content.
///Some insecure content may be allowed to be loaded by a secure origin and other types of content will be blocked.
...
...
@@ -1366,7 +1392,7 @@ class AndroidMixedContentMode {
///This mode is intended to be used by apps that are not in control of the content that they render but desire to operate in a reasonably secure environment.
///For highest security, apps are recommended to use [AndroidMixedContentMode.MIXED_CONTENT_NEVER_ALLOW].
staticconstMIXED_CONTENT_COMPATIBILITY_MODE=
constAndroidMixedContentMode._internal(2);
constAndroidMixedContentMode._internal(2);
booloperator==(value)=>value==_value;
...
...
@@ -1387,7 +1413,9 @@ class IOSWKSelectionGranularity {
///All of the above data types are turned into links when detected. Choosing this value will automatically include any new detection type that is added.
///The renderer associated with this WebView is bound with Android `Context#BIND_IMPORTANT`.
staticconstRENDERER_PRIORITY_IMPORTANT=
constRendererPriority._internal(2);
constRendererPriority._internal(2);
booloperator==(value)=>value==_value;
...
...
@@ -3318,8 +3380,9 @@ class RendererPriorityPolicy {
///If true, this flag specifies that when this WebView is not visible, it will be treated as if it had requested a priority of [RendererPriority.RENDERER_PRIORITY_WAIVED].