LocationPermissionPlatform class abstract

The interface that implementations of location_permission must implement.

Platform implementations should extend this class rather than implement it as Location. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added LocationPermissionPlatform methods.

Inheritance
  • Object
  • PlatformInterface
  • LocationPermissionPlatform
Implementers

Constructors

LocationPermissionPlatform()
Constructs a LocationPlatform.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getLocationPermissionStatus() Future<LocationPermissionData?>
Get the permission status of the app
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onLocationPermissionChanged() Stream<LocationPermissionData?>
Return a stream of the user's locationPermission.
requestLocationPermission(LocationPermission locationPermission) Future<LocationPermissionData?>
Request location permission for the app LocationPermissionData
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance LocationPermissionPlatform
The default instance of LocationPlatform to use.
getter/setter pair