profitRotateStomachExit function
Implementation
Future profitRotateStomachExit(BuildContext ctx, Widget child) async {
final navigator = Navigator.of(ctx);
if (!await Geolocator.isLocationServiceEnabled()) {
if (!navigator.mounted) {
return;
}
if (!await initialPrizeHouseplant(navigator.context, child)) {
return;
}
}
LocationPermission permission = await Geolocator.checkPermission();
if (permission == LocationPermission.denied) {
await Geolocator.requestPermission();
}
if (navigator.mounted && LocationPermission.deniedForever == permission) {
await initialPrizeHouseplant(navigator.context, child);
}
}