isLocationServiceEnabled method

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

Check device location service is enabled

Implementation

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