CustomSchemeResponse class

Class representing the response returned by the PlatformWebViewCreationParams.onLoadResourceWithCustomScheme event. It allows to load a specific resource. The resource data must be encoded to base64.

Constructors

CustomSchemeResponse({String contentEncoding = 'utf-8', required String contentType, required Uint8List data})

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>
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) CustomSchemeResponse?
Gets a possible CustomSchemeResponse instance from a Map value.