Address class abstract

Address

Properties:

  • city - The name of the city. Required if stateOrProvince is provided. If you specify the city, you must also send postalCode and street.
  • country - The two-letter ISO 3166-1 alpha-2 country code.
  • postalCode - The postal code. Required if stateOrProvince and/or city is provided. When using alphanumeric postal codes, all letters must be uppercase. For example, 1234 AB or SW1A 1AA.
  • stateOrProvince - The two-letter ISO 3166-2 state or province code. For example, CA in the US. Required for Australia and New Zealand. If you specify the state or province, you must also send city, postalCode, and street.
  • street - The name of the street, and the house or building number. Required if stateOrProvince and/or city is provided.
  • street2 - The apartment, unit, or suite number.
Annotations
  • @BuiltValue.new()

Constructors

Address([void updates(AddressBuilder b)])
factory

Properties

city String?
The name of the city. Required if stateOrProvince is provided. If you specify the city, you must also send postalCode and street.
no setter
country String
The two-letter ISO 3166-1 alpha-2 country code.
no setter
hashCode int
The hash code for this object.
no setterinherited
postalCode String?
The postal code. Required if stateOrProvince and/or city is provided. When using alphanumeric postal codes, all letters must be uppercase. For example, 1234 AB or SW1A 1AA.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stateOrProvince String?
The two-letter ISO 3166-2 state or province code. For example, CA in the US. Required for Australia and New Zealand. If you specify the state or province, you must also send city, postalCode, and street.
no setter
street String?
The name of the street, and the house or building number. Required if stateOrProvince and/or city is provided.
no setter
street2 String?
The apartment, unit, or suite number.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(dynamic updates(AddressBuilder)) Address
Rebuilds the instance.
inherited
toBuilder() AddressBuilder
Converts the instance to a builder B.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

serializer → Serializer<Address>
no setter