CustomSchemeResponse class
Class representing the response returned by the WebView.onLoadResourceCustomScheme event.
It allows to load a specific resource. The resource data must be encoded to base64
.
Constructors
- CustomSchemeResponse({required Uint8List data, required String contentType, String contentEncoding = 'utf-8'})
Properties
- contentEncoding ↔ String
-
Content-Encoding of the data, such as
utf-8
.getter/setter pair - contentType ↔ String
-
Content-Type of the data, such as
image/png
.getter/setter pair - data ↔ Uint8List
-
Data enconded to 'base64'.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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> -
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited