openLocationSettings method

  1. @override
Future<bool> openLocationSettings()
override

Opens the location settings page.

Returns true if the location settings page could be opened, otherwise false is returned.

Implementation

@override
Future<bool> openLocationSettings() async {
  try {
    return await methodChannel.invokeMethod(Methods.openLocationSettings);
  } on PlatformException catch (e) {
    final error = _handlePlatformException(e);
    throw error;
  }
}