GeolocationPermissionShowPromptResponse class

Class used by the host application to set the Geolocation permission state for an origin during the PlatformWebViewCreationParams.onGeolocationPermissionsShowPrompt event.

Constructors

GeolocationPermissionShowPromptResponse({required bool allow, required String origin, bool retain = false})

Properties

allow bool
Whether or not the origin should be allowed to use the Geolocation API.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
origin String
The origin for which permissions are set.
getter/setter pair
retain bool
Whether the permission should be retained beyond the lifetime of a page currently being displayed by a WebView The default value is false.
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) GeolocationPermissionShowPromptResponse?
Gets a possible GeolocationPermissionShowPromptResponse instance from a Map value.