checkLocationServicesIfEnabled property

Future<bool> checkLocationServicesIfEnabled

Return true when location service is enabled, otherwise false.

Implementation

Future<bool> get checkLocationServicesIfEnabled async {
  final result =
      await _methodChannel.invokeMethod('checkLocationServicesIfEnabled');

  if (result is bool) {
    return result;
  }

  return result == 1;
}