PostalAddress class

Represents a structured postal address, such as a home or work address.

Constructors

PostalAddress({String? street, String? city, String? state, String? postalCode, String? country, String? label})
Creates a PostalAddress with individual components.
PostalAddress.fromMap(Map map)
Creates a PostalAddress instance from a map returned by the native platform.
factory

Properties

city String?
The city or locality name.
final
country String?
The country name.
final
hashCode int
The hash code for this object.
no setterinherited
label String?
The label describing this address (e.g. "home", "work").
final
postalCode String?
The postal or ZIP code.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String?
The state, province, or region.
final
street String?
The street name and house number.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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