PersonNameComponents class

The separate parts of a person's name, allowing locale-aware formatting.

Annotations

Constructors

PersonNameComponents({String? namePrefix, String? givenName, String? middleName, String? familyName, String? nameSuffix, String? nickname})
PersonNameComponents.fromMap(Map? map)
factory

Properties

familyName String?
Name passed from one generation to another to indicate lineage, e.g. Appleseed. Can be null.
final
givenName String?
Name bestowed upon an individual by one's parents, e.g. Johnathan. Can be null.
final
hashCode int
The hash code for this object.
no setterinherited
middleName String?
Secondary given name chosen to differentiate those with the same first name, e.g. Maple. Can be null.
final
namePrefix String?
Pre-nominal letters denoting title, salutation, or honorific, e.g. Dr., Mr. Can be null.
final
nameSuffix String?
Post-nominal letters denoting degree, accreditation, or other honor, e.g. Esq., Jr., Ph.D. Can be null.
final
nickname String?
Name substituted for the purposes of familiarity, e.g. 'Johnny'. Can be null.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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