ULocationPermission class
Location permission, precise/approximate and whether GPS is on.
- Annotations
Constructors
- ULocationPermission({required ULocationPermissionStatus status, bool? precise, bool serviceEnabled = true})
-
const
-
ULocationPermission.fromMap(Map<
Object?, Object?> m) -
Reads it from the native map.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAlways → bool
-
True when background ("always") access is granted.
no setter
- isGranted → bool
-
True when location may be used (in use or always).
no setter
- precise → bool?
-
False when the user granted only approximate location (iOS 14+, Android 12+).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serviceEnabled → bool
-
Location services (GPS switch) are on.
final
- status → ULocationPermissionStatus
-
Permission state.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited