Address class
FHIRAddress definition: an address expressed using postal conventions (as opposed to gps or other location definition formats). this data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. there are a variety of postal address formats defined around the world
- Annotations
-
- @freezed
Constructors
-
Address({@JsonKey(name: 'id') String? id, @JsonKey(name: 'type', unknownEnumValue: AddressTypeEnum.both) AddressTypeEnum? type, @JsonKey(name: 'use', unknownEnumValue: AddressUseEnum.home) AddressUseEnum? use, @JsonKey(name: 'text') String? text, @JsonKey(name: 'line') List<
String?> ? line, @JsonKey(name: 'city') String? city, @JsonKey(name: 'district') String? district, @JsonKey(name: 'state') String? state, @JsonKey(name: 'postalCode') String? postalCode, @JsonKey(name: 'country') String? country, @JsonKey(name: 'period') Period? period}) -
factory
-
Address.fromJson(Map<
String, dynamic> json) -
factory
Properties
- city → String?
-
The name of the city, town, suburb, village or other community or
delivery center.
no setterinherited
-
copyWith
→ $AddressCopyWith<
Address> -
no setterinherited
- country → String?
-
no setterinherited
- district → String?
-
The name of the administrative area (county).
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
no setterinherited
-
line
→ List<
String?> ? -
This component contains the house number, apartment number,
street name, street direction, P.O. Box number, delivery hints,
and similar address information.
no setterinherited
- period → Period?
-
Time period when address was/is in use.
no setterinherited
- postalCode → String?
-
A postal code designating a region defined by the postal service.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → String?
-
Sub-unit of a country with limited sovereignty in a federally organized
country. A code may be used if codes are in common use
(e.g. US 2 letter state codes).
no setterinherited
- text → String?
-
Specifies the entire address as it should be displayed
e.g. on a postal label. This may be provided instead of or as well
as the specific parts.
no setterinherited
- type → AddressTypeEnum?
-
Distinguishes between physical addresses (those you can visit)
and mailing addresses (e.g. PO Boxes and care-of addresses).
Most addresses are both.
no setterinherited
- use → AddressUseEnum?
-
The purpose of this address.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited