Address class

Constructors

Address({String? city, String? countryCode, String? country, String? district, String? subdistrict, String? houseNumberOrName, String? postalCode, String? state, String? county, String? street})
Address.fromJson(String source)
factory
Address.fromMap(Map<String, dynamic> map)
factory

Properties

city String?
The city name for the address, for example, "Grosswallstadt".
getter/setter pair
country String?
The country name for the address, for example, "Deutschland".
getter/setter pair
countryCode String?
An ISO-3166-1 (3-letter) country code for the address, for example, "DE".
getter/setter pair
county String?
The county name for the address. It is a division of a state, typically a secondary-level administrative division of a country or equivalent, for example, "Kings".
getter/setter pair
district String?
The district name for the address. It is a division of city, typically an administrative unit within a larger city or a customary name of a city's neighborhood, for example, "Bedford-Stuyvesant".
getter/setter pair
hasAddress bool
no setter
hashCode int
The hash code for this object.
no setteroverride
houseNumberOrName String?
The house name or number for the address, for example, "7".
getter/setter pair
postalCode String?
The postal code for the address. It is an alphanumeric string included in a postal address to facilitate mail sorting, known locally in various countries throughout the world as a postcode, post code, PIN or ZIP Code, for example, "63868".
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String?
The state name for the address. It is code/abbreviation for the state division of a country, for example, "Bayern".
getter/setter pair
street String?
The street name for the address, for example, "Industriering".
getter/setter pair
subdistrict String?
The subdistrict name for the address. It is a subdivision of a district.
getter/setter pair

Methods

asSingleLineString() String
copyWith({String? city, String? countryCode, String? country, String? district, String? subdistrict, String? houseNumberOrName, String? postalCode, String? state, String? county, String? street}) Address
getStreetAndNumber() String
getZipAndCity() String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override