diff --git a/lib/src/features/locations/presentation/controller/location_controller.dart b/lib/src/features/locations/presentation/controller/location_controller.dart index 41f6ace..bf47ed1 100644 --- a/lib/src/features/locations/presentation/controller/location_controller.dart +++ b/lib/src/features/locations/presentation/controller/location_controller.dart @@ -28,7 +28,7 @@ class LocationController extends StateNotifier> { Future generate( {required String locationId, required WeatherOneCall weather}) async { state = const AsyncLoading(); - String token = await appUser.firebaseAppUser!.getIdToken(); + String? token = await appUser.firebaseAppUser!.getIdToken(); String apiKey = "api_key"; String contentType = "application/json"; String timezoneString = weather.timezone!;