isLocationOperational method

Future<GeolocationResult> isLocationOperational (
  1. {LocationPermission permission: const LocationPermission()}

Checks if location service is currently operational. It includes if location permission is granted.

Operational location means that the device is able to make location requests. Otherwise it means that the device's location service is disabled, restricted, or not permitted.

Note that being operational does not mean that location request is guaranteed to succeed. Location request might still fail if device has no GPS coverage for instance. There is no way to know this before making the location request.

See also:


static Future<GeolocationResult> isLocationOperational({
  LocationPermission permission = const LocationPermission(),
}) =>