City class

City information.

Constructors

City({Coordinates? coordinates, Country? country, int? id, String? name, int? population, int timezone = 0})
Define a City class.
const
City.fromJson(Map<String, dynamic> json)
Factory that returns a City class from json Map.
factory

Properties

coordinates Coordinates?
City geolocation.
final
country Country?
Country to which the city belongs.
final
hashCode int
The hash code for this object.
no setterinherited
id int?
City ID used by Open Weather Map.
final
name String?
City name.
final
population int?
Population obtained from Open Weather Map, may not be exact.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timezone int
Timezone in seconds.
final

Methods

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