Location Permission Status – always getting as denied in Flutter

I have created below method to check the location permission status in my flutter application: Future<void> checkLocationPermission( BuildContext context, UserCredential userCredential) async { locationPermissionStatus = await permission_status.Permission.location .request() .then((value) async { if (locationPermissionStatus.isGranted) { displayToast("granted"); await getCurrentLocation(context, userCredential); } else { displayToast("not granted"); } return locationPermissionStatus; }); } Where, PermissionStatus is declared as below: permission_status.PermissionStatus… Read More Location Permission Status – always getting as denied in Flutter