openLocationSettings static method

Future<void> openLocationSettings()

Open app settings for location permission

Implementation

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