Address class

Address represents the actual location address with attributes as follows: houseNumber, road, neighbourhood, suburb, city, district, state, postalCode, country, countryCode.

Constructors

Address({String houseNumber = '', String road = '', String neighbourhood = '', String suburb = '', required String city, String district = '', String state = '', required int postalCode, String country = '', String countryCode = ''})
const
Address.fromJson(Map<String, dynamic> json)
Create Address from json Map object.
factory

Properties

checkEmpty bool
Check if any of the field of this instance other than city and postal code.
no setter
city String
city name of the location.
final
country String
country of the location.
final
countryCode String
countryCode of the location.
final
district String
district of the location.
final
hashCode int
The hash code for this object.
no setterinherited
houseNumber String
houseNumber of the location.
final
neighbourhood String
neighbourhood name of the location.
final
postalCode int
postalCode of the location.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
requestStr String
Get String request of the this instance
no setter
road String
road name of the location.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String
state of the location.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
suburb String
suburb name of the location.
final

Methods

copyWith({String? houseNumber, String? road, String? neighbourhood, String? suburb, String? city, String? district, String? state, int? postalCode, String? country, String? countryCode}) Address
Copy this Address with the given attributes if given not null.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Json Map object of this Address.
toString() String
A string representation of this object.

Operators

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