Address class

Represents a physical address.

This class encapsulates various properties of an address, such as its street, city, state, country or region, and postal code.

Constructors

Address({String? street, String? city, String? state, String? countryOrRegion, String? postalCode})
Creates a new instance of Address.
Address.fromJson(Map<String, dynamic> json)
Creates a new instance of Address from a JSON object.
factory

Properties

city String?
The city of the address.
final
countryOrRegion String?
The country or region of the address.
final
hashCode int
The hash code for this object.
no setterinherited
postalCode String?
The postal code of the address.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String?
The state of the address.
final
street String?
The street name of the address.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a JSON-compatible map that represents this Address.
toString() String
A string representation of this object.
inherited

Operators

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