Address class
An address.
Once created, no properties of an Address object may be changed.
- Annotations
-
- @immutable
Constructors
- Address({String? city, required Country countryRegion, String? label, String? poBox, String? postalCode, String? provinceDepartment, String? streetAddress, String? streetAddressLine2})
-
Constructs an Address instance.
const
- Address.fromJson(String json)
-
Constructs an Address instance from a
json
string.factory -
Address.fromMap(Map<
String, dynamic> map) -
Constructs an Address instance from a
map
.
Properties
- city → String?
-
The city.
final
- countryRegion → Country
-
The country or region.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- label → String?
-
The label.
final
- poBox → String?
-
The post office box.
final
- postalCode → String?
-
The postal code.
final
- provinceDepartment → String?
-
The province or department.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- streetAddress → String?
-
The street address.
final
- streetAddressLine2 → String?
-
The street address (line 2).
final
Methods
-
copyWith(
{String? city, Country? countryRegion, String? label, String? poBox, String? postalCode, String? provinceDepartment, String? streetAddress, String? streetAddressLine2}) → Address - Creates a copy of this Address instance but with the given fields replaced with the new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - Creates a JSON string representing this Address instance.
-
toMap(
) → Map< String, dynamic> - Creates a Map<String, dynamic> representing this Address instance.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
covariant Address other) → bool -
The equality operator.
override