From 36d8d0b8ddb494595c076ba4747f627612a44671 Mon Sep 17 00:00:00 2001 From: Lecat Baptiste <60200125+BaptisteLecat@users.noreply.github.com> Date: Mon, 18 Dec 2023 15:06:54 +0100 Subject: [PATCH] Update location_controller.dart --- .../locations/presentation/controller/location_controller.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!;