isLocationServiceEnabled method

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

Implementation

@override
Future<bool> isLocationServiceEnabled() async {
  try {
    final value = await _manager().getProperty(
      _managerIface,
      'LocationAvailable',
      signature: DBusSignature('b'),
    );
    return (value as DBusBoolean).value;
  } catch (_) {
    return false;
  }
}