openLocationSettings static method
Open app settings for location permission
Implementation
static Future<void> openLocationSettings() async {
try {
await Geolocator.openLocationSettings();
} catch (e) {
print('Error opening location settings: $e');
}
}