isLocationServiceEnabled method

Future<bool> isLocationServiceEnabled()

Check if location services are enabled

Implementation

Future<bool> isLocationServiceEnabled() async {
  try {
    return await geo.Geolocator.isLocationServiceEnabled();
  } catch (e) {
    _errorController.add('Failed to check location service: $e');
    return false;
  }
}