isLocationServiceEnabled method
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;
}
}