CustomSchemeRegistration class
Class that represents the registration of a custom scheme for WebViewEnvironmentSettings method.
Officially Supported Platforms/Implementations:
- Windows
Constructors
Properties
-
allowedOrigins
↔ List<
String> ? -
List of origins that are allowed to issue requests with the custom scheme, such as XHRs and subresource requests that have an Origin header.
getter/setter pair
- hasAuthorityComponent ↔ bool?
-
Set this property to
true
if the URIs with this custom scheme will have an authority component (a host for custom schemes). Specifically, if you have a URI of the following form you should set the HasAuthorityComponent value as listed.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
- scheme ↔ String
-
The name of the custom scheme to register.
getter/setter pair
- treatAsSecure ↔ bool?
-
Whether the sites with this scheme will be treated as a Secure Context like an HTTPS site.
This flag is only effective when hasAuthorityComponent is also set to
true
.false
by default.getter/setter pair
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) → CustomSchemeRegistration? - Gets a possible CustomSchemeRegistration instance from a Map value.