AddressInfo class

Address information for shipping or billing.

Example

final address = AddressInfo(
  contactName: 'John Doe',
  city: 'Istanbul',
  country: 'Turkey',
  address: 'Kadikoy, Istanbul 34000',
);
Annotations
  • @immutable

Constructors

AddressInfo({required String contactName, required String city, required String country, required String address, String? zipCode})
Creates a new AddressInfo instance.
const
AddressInfo.fromJson(Map<String, dynamic> json)
Creates an AddressInfo from a JSON map.
factory

Properties

address String
Full street address.
final
city String
City name.
final
contactName String
Contact name for this address.
final
country String
Country name.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
zipCode String?
Postal/ZIP code (optional).
final

Methods

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

Operators

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