AddressComponents class

Los componentes de una dirección, para geocodificar campo a campo.

Es la alternativa a mandar la dirección como texto libre, y da mejores resultados cuando la dirección ya viene troceada de un formulario: el servicio no tiene que adivinar dónde acaba la calle y empieza la ciudad.

Annotations
  • @immutable

Constructors

AddressComponents({String? country, String? region, String? subRegion, String? locality, String? district, String? street, String? addressNumber, String? postalCode})
Crea los componentes.
const

Properties

addressNumber String?
Número.
final
country String?
País, en ISO alfa-2 o alfa-3.
final
district String?
Barrio.
final
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
¿No se rellenó ninguno?
no setter
locality String?
Ciudad.
final
postalCode String?
Código postal.
final
region String?
Provincia o estado.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
street String?
Calle.
final
subRegion String?
Cantón o condado.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Los componentes en la forma que espera el servicio.
toString() String
A string representation of this object.
inherited

Operators

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