currentLocation property

String get currentLocation

Get current location safely

Implementation

String get currentLocation {
  try {
    return GoRouter.of(this).safeLocation;
  } catch (e) {
    if (kDebugMode) {
      debugPrint('Error getting current location: $e');
    }
    return '/';
  }
}