checkPermissions static method
Checks the location permission.
This method checks the geolocation permission status on the device.
Returns the current location permission status.
Implementation
static Future<LocationPermission> checkPermissions() async {
return Geolocator.checkPermission();
}