ParsedAddress class

Parsed components of a Pakistani mailing address. See parseAddress.

Constructors

ParsedAddress({required String raw, String? street, String? area, String? city, String? district, String? province, String? postalCode, List<String> warnings = const []})
Creates a parsed address.
const

Properties

area → String?
Other remaining segments, comma-separated.
final
city → String?
Matched city.
final
district → String?
Matched district.
final
hashCode → int
The hash code for this object.
no setteroverride
postalCode → String?
5-digit postal code.
final
province → String?
Matched or inferred province.
final
raw → String
The input with whitespace normalized.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
street → String?
First remaining segment, e.g. "House 12".
final
warnings → List<String>
Inconsistencies found while parsing, e.g. a city in a different province.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
JSON form, with the same keys as the npm package.
toString() → String
A string representation of this object.
override

Operators

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