HumanName class
A human's name with the ability to identify parts and usage.
- Annotations
-
- @freezed
Constructors
-
HumanName({@JsonKey(name: 'ID') String? id, @JsonKey(name: 'Use', unknownEnumValue: HumanNameUseEnum.official) HumanNameUseEnum? use, @JsonKey(name: 'Text') String? text, @JsonKey(name: 'Family') String? family, @JsonKey(name: 'Given') List<
String?> ? given, @JsonKey(name: 'Prefix') List<String?> ? prefix, @JsonKey(name: 'Suffix') List<String?> ? suffix, @JsonKey(name: 'Period') Period? period}) -
factory
-
HumanName.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
copyWith
→ $HumanNameCopyWith<
HumanName> -
no setterinherited
- family → String?
-
The part of a name that links to the genealogy.
In some cultures (e.g. Eritrea) the family name of a son is the
first name of his father.
no setterinherited
-
given
→ List<
String?> ? -
Given name.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
no setterinherited
- period → Period?
-
Indicates the period of time when this name was valid for the named person
no setterinherited
-
prefix
→ List<
String?> ? -
Part of the name that is acquired as a title due to academic,
legal, employment or nobility status, etc. and that appears
at the start of the name.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
suffix
→ List<
String?> ? -
Part of the name that is acquired as a title due to academic,
legal, employment or nobility status, etc. and that appears
at the end of the name.
no setterinherited
- text → String?
-
Specifies the entire name as it should be displayed e.g. on an application UI.
This may be provided instead of or as well as the specific parts
no setterinherited
- use → HumanNameUseEnum?
-
Identifies the purpose for this name
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