CustomSchemeResponse class Null safety

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.
read / write
contentType String
Content-Type of the data, such as image/png.
read / write
data Uint8List
Data enconded to 'base64'.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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