LocationPermission enum

Represent the possible location permissions.

Inheritance

Constructors

LocationPermission()
const

Values

denied → const LocationPermission

Permission to access the device's location is denied, the App should try to request permission using the Geolocator.requestPermission() method.

deniedForever → const LocationPermission

Permission to access the device's location is permenantly denied. When requestiong permissions the permission dialog will not been shown until the user updates the permission in the App settings.

whileInUse → const LocationPermission

Permission to access the device's location is allowed only while the App is in use.

always → const LocationPermission

Permission to access the device's location is allowed even when the App is running in the background.

unableToDetermine → const LocationPermission

Permission status is cannot be determined. This permission is only returned by the Geolocator.checkPermission() method on the web platform for browsers that do not implement the Permission API (see https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API).

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
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
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<LocationPermission>
A constant List of the values in this enum, in order of their declaration.