Address class abstract

Address

Properties:

  • city - The name of the city. Supported characters: a-z A-Z 0-9 . - — / # , ’ ° ( ) : ; & \ | and Space. > Required when the category is card.
  • country - The two-character ISO 3166-1 alpha-2 country code. For example, US, NL, or GB.
  • line1 - The first line of the street address. Supported characters: a-z A-Z 0-9 . - — / # , ’ ° ( ) : ; & \ | and Space. > Required when the category is card.
  • line2 - The second line of the street address. Supported characters: a-z A-Z 0-9 . - — / # , ’ ° ( ) : ; & \ | and Space. > Required when the category is card.
  • postalCode - The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: a-z A-Z 0-9 and Space. > Required for addresses in the US.
  • stateOrProvince - The two-letter ISO 3166-2 state or province code. For example, CA in the US or ON in Canada. > Required for the US and Canada.
Annotations
  • @BuiltValue.new()

Constructors

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

Properties

city → String?
The name of the city. Supported characters: a-z A-Z 0-9 . - — / # , ’ ° ( ) : ; & \ | and Space. > Required when the category is card.
no setter
country → String
The two-character ISO 3166-1 alpha-2 country code. For example, US, NL, or GB.
no setter
hashCode → int
The hash code for this object.
no setterinherited
line1 → String?
The first line of the street address. Supported characters: a-z A-Z 0-9 . - — / # , ’ ° ( ) : ; & \ | and Space. > Required when the category is card.
no setter
line2 → String?
The second line of the street address. Supported characters: a-z A-Z 0-9 . - — / # , ’ ° ( ) : ; & \ | and Space. > Required when the category is card.
no setter
postalCode → String?
The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: a-z A-Z 0-9 and Space. > Required for addresses in the US.
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 or ON in Canada. > Required for the US and Canada.
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