Weather class
Weather data
Constructors
-
Weather(Coordinates coord, List<
Details> details, Temperature temperature, int visibility, Wind wind, num clouds, Rain rain, Snow snow, int dt, int timezone, int sunrise, int sunset, int id, String name) - Creates a Weather object
-
Weather.fromJson(Map<
String, dynamic> json) -
Cretes a Weather object from json
factory
Properties
- clouds → num
-
Cloudiness
final
- coord → Coordinates
-
Coordinates object
final
-
details
→ List<
Details> -
List of Details
final
- dt → int
-
Time of data calculation, unix, UTC
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
City ID
final
- name → String
-
City name
final
- rain → Rain
-
Rain object
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- snow → Snow
-
Snow object
final
- sunrise → int
-
Sunrise time, unix, UTC
final
- sunset → int
-
Sunset time, unix, UTC
final
- temperature → Temperature
-
Temperature object
final
- timezone → int
-
Shift in seconds from UTC
final
- visibility → int
-
Visibility
final
- wind → Wind
-
Wind object
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Returns a Map with the object data
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited