handleLogout method
Handle logout event.
Implementation
Future<void> handleLogout() async {
// Force refresh to ensure we don't use any stale cache after logout
// This is critical for non-web platforms where SharedPreferences cleanup may be async.
final places = await PlacesService.fetchPlaces(
forceRefresh: true,
includeEncrypted: false,
);
if (mounted) {
setState(() {
allPlaces = places;
});
}
}