InAppWebViewInitialData class

Initial data as a content for an WebView instance, using baseUrl as the base URL for it.

Constructors

InAppWebViewInitialData({@Deprecated('Use historyUrl instead') Uri? androidHistoryUrl, WebUri? baseUrl, required String data, String encoding = "utf8", WebUri? historyUrl, String mimeType = "text/html"})

Properties

androidHistoryUrl Uri?
Use historyUrl instead.
getter/setter pair
baseUrl WebUri?
The URL to use as the page's base URL. If null defaults to about:blank.
getter/setter pair
data String
A String of data in the given encoding.
getter/setter pair
encoding String
The encoding of the data. The default value is "utf8".
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
historyUrl WebUri?
The URL to use as the history entry. If null defaults to about:blank. If non-null, this must be a valid URL.
getter/setter pair
mimeType String
The MIME type of the data, e.g. "text/html". The default value is "text/html".
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts instance to a map.
toMap() Map<String, dynamic>
Converts instance to a map.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromMap(Map<String, dynamic>? map) InAppWebViewInitialData?
Gets a possible InAppWebViewInitialData instance from a Map value.