LocationPermissions class

Constructors

LocationPermissions()
factory
LocationPermissions.private(MethodChannel _methodChannel, EventChannel? _eventChannel)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceStatus Stream<ServiceStatus>
Allows listening to the enabled/disabled state of the location service, currently only on Android.
no setter

Methods

checkPermissionStatus({LocationPermissionLevel level = LocationPermissionLevel.location}) Future<PermissionStatus>
Check current permission status.
checkServiceStatus({LocationPermissionLevel level = LocationPermissionLevel.location}) Future<ServiceStatus>
Check current service status.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openAppSettings() Future<bool>
Open the App settings page.
requestPermissions({LocationPermissionLevel permissionLevel = LocationPermissionLevel.location}) Future<PermissionStatus>
Request the user for access to the location services.
shouldShowRequestPermissionRationale({LocationPermissionLevel permissionLevel = LocationPermissionLevel.location}) Future<bool>
Request to see if you should show a rationale for requesting permission.
toString() String
A string representation of this object.
inherited

Operators

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