LocationForecast class Weather
Weather forecast for a specific geographic location.
Contains the forecast update time, coordinates, and a list of conditions representing weather data for the location.
Is obtained via WeatherService methods.
Constructors
-
LocationForecast({required DateTime updated, required Coordinates coord, required List<
Conditions> forecast}) - Creates a LocationForecast instance.
-
LocationForecast.fromJson(Map<
String, dynamic> json) -
Deserializes a JSON-compatible map to create an instance.
factory
Properties
- coord ↔ Coordinates
-
Geographic coordinates for this forecast.
getter/setter pair
-
forecast
↔ List<
Conditions> -
Weather conditions for the forecast period.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updated ↔ DateTime
-
UTC datetime when the forecast was last updated.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes this instance to a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited