CurrentWeather class
Current weather information.
Constructors
-
CurrentWeather({required City city, int? cloudiness, required List<
Condition> conditions, required DateTime dateTime, required Detail detail, Rain? rain, required DateTime sunrise, required DateTime sunset, int? visibility, required Wind wind}) -
Define a CurrentWeather class.
const
-
CurrentWeather.fromJson(Map<
String, dynamic> json) -
Factory that returns the
factory
Properties
- city → City
-
City information.
final
- cloudiness → int?
-
Cloudiness, in % (percentage).
final
-
conditions
→ List<
Condition> -
Weather conditions information (Rain, Snow, etc).
final
- dateTime → DateTime
-
Time of data calculation.
final
- detail → Detail
-
Details of the weather (temperature, pressure, etc).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- rain → Rain?
-
Rain information.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sunrise → DateTime
-
Sunrise time.
final
- sunset → DateTime
-
Sunset time.
final
- visibility → int?
-
Average visibility, metres.
final
- wind → Wind
-
Wind information.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Returns a map of the class formatted as it comes from the API.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited