HumanName class

A name of a human with text, parts and usage information.

Constructors

HumanName({String? family, String? use, FixedList<String>? given, FixedList<String>? prefix})
Constructs a new HumanName with optional family, use, given and prefix.
HumanName.fromJson(JsonObject _json)
Constructs a new HumanName instance from the provided JSON object.

Properties

family String?
Family name (often called 'Surname').
no setter
given FixedList<String>?
Given names (not always 'first'). Includes middle names.
no setter
hashCode int
The hash code for this object.
no setteroverride
json → JsonObject
Converts this HumanName instance to a JSON object.
no setter
prefix FixedList<String>?
Parts that come before the name.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
use String?
Identifies the purpose for this name.
no setter

Methods

copyWith({String? family, String? use, FixedList<String>? given, FixedList<String>? prefix}) HumanName
Makes a copy of this HumanName but with the given fields updated.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

familyField → const FieldDefinition<String>
Field definition for family
fieldDefinitions → const List<FieldDefinition<Object>>
All field definitions for HumanName
givenField → const FieldDefinition<FixedList<String>>
Field definition for given
prefixField → const FieldDefinition<FixedList<String>>
Field definition for prefix
useField → const FieldDefinition<String>
Field definition for use