enableLocationServices method

  1. @override
Future<void> enableLocationServices()
override

Attempts to open the device's location settings screen for the user to enable location services.

Returns a Future that completes when the settings screen is opened. Check the result using checkLocationEnabled after the user returns to the app.

Implementation

@override
Future<void> enableLocationServices() async {
  await methodChannel.invokeMethod('enableLocationServices');
}