WeatherData class
///////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////
Constructors
- WeatherData.new({required double precipitation, required double temperature, required int humidity, required String description, required String iconCode, required double visibility, required double windSpeed, required double windDirection, required double pressure, required double uvIndex})
-
////////////
////////////
const
-
WeatherData.fromJson(Map<
String, dynamic> json) -
////////////
////////////
Creates WeatherData from OpenWeatherMap API JSON response
factory
Properties
- description → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- humidity → int
-
final
- iconCode → String
-
final
- precipitation → double
-
////////////
////////////
final
- precipitationType → PrecipitationType
-
/////////
/////////
Determines precipitation intensity
no setter
- pressure → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- temperature → double
-
final
- uvIndex → double
-
final
- visibility → double
-
final
- visibilityCondition → VisibilityCondition
-
Provides visibility condition assessment
no setter
- windDirection → double
-
final
- windDirectionCardinal → String
-
Gets wind direction as cardinal point
no setter
- windSpeed → double
-
final
Methods
-
getWeatherSummary(
) → String - Provides a human-readable weather summary
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited