Address class abstract
Address
Properties:
- city - The name of the city. Required if
stateOrProvinceis provided. If you specify the city, you must also sendpostalCodeandstreet. - country - The two-letter ISO 3166-1 alpha-2 country code.
- postalCode - The postal code. Required if
stateOrProvinceand/orcityis 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, andstreet. - street - The name of the street, and the house or building number. Required if
stateOrProvinceand/orcityis 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
stateOrProvinceis provided. If you specify the city, you must also sendpostalCodeandstreet.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
stateOrProvinceand/orcityis 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, andstreet.no setter - street → String?
-
The name of the street, and the house or building number. Required if
stateOrProvinceand/orcityis 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