isLocationServicesEnabled method

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

Whether location services are enabled.

Implementation

@override
Future<bool> isLocationServicesEnabled() async {
  final int result =
      await methodChannel.invokeMethod('checkLocationServicesStatus');
  return result == LocationServicesStatus.enabled.index;
}