safeLocation property
String
get
safeLocation
Get current location safely
Implementation
String get safeLocation {
try {
return location;
} catch (e) {
if (kDebugMode) {
debugPrint('Error getting location: $e');
}
return '/';
}
}