Address class

This class models a reference to an address.

Implemented types
Annotations

Constructors

Address({required String city, required String countryRegion, String label = '', String postalCode = '', String postOfficeBox = '', required String province, required String street})
A reference to an address.
const
Address.fromMap(Map<String, dynamic> map)
Creates an Address instance starting from a Map<String, dynamic> map.

Properties

city String
The city. In some regions it is given by the municipality.
final
countryRegion String
The country or region. It can be understood as the nation.
final
hashCode int
The hash code for this object.
no setteroverride
label String
The address label. It is useful for distinguishing different addresses that belong to the same person.
final
postalCode String
The postcode. Useful when you have to send something to the address.
final
postOfficeBox String
A post office box is a uniquely addressable lockable box located on the premises of a post office station.
final
province String
The province is a political region that oversees several municipalities.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
street String
The street of the address.
final

Methods

compareTo(covariant Address other) int
The order of the comparisons is:
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Creates a Map<String, dynamic> map representation of this instance.
toString() String
A string representation of this object.
inherited

Operators

operator <(covariant Address other) bool
Returns if this instance is less than the other.
operator <=(covariant Address other) bool
Return if this instance is less than or equal to the other.
operator ==(covariant Address other) bool
The equality operator.
override
operator >(covariant Address other) bool
Return if this instance is greater than the other.
operator >=(covariant Address other) bool
Return if this instance is greater than or equal to the other.