Name class

This class models a reference to a person’s name.

Implemented types
Annotations

Constructors

Name({String fileAs = '', required String firstName, required String lastName, String middleName = '', String nickname = '', String phoneticFirst = '', String phoneticLast = '', String phoneticMiddle = '', String prefix = '', String suffix = ''})
A reference to a person’s name.
const
Name.fromMap(Map<String, dynamic> map)
Creates a Name instance starting from a Map<String, dynamic> map.

Properties

fileAs String
File as.
final
firstName String
The first name.
final
hashCode int
The hash code for this object.
no setteroverride
lastName String
The last name.
final
middleName String
The middle name.
final
nickname String
A nickname.
final
phoneticFirst String
The phonetic first name.
final
phoneticLast String
The phonetic last name.
final
phoneticMiddle String
The phonetic middle name.
final
prefix String
The prefix for this name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suffix String
The suffix for this name.
final

Methods

compareTo(covariant Name other) int
The order of the comparisons is:
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Creates a Map<String, dynamic> map representation of this instance.
toString() String
A string representation of this object.
inherited

Operators

operator <(covariant Name other) bool
Returns if this instance is less than the other.
operator <=(covariant Name other) bool
Return if this instance is less than or equal to the other.
operator ==(covariant Name other) bool
The equality operator.
override
operator >(covariant Name other) bool
Return if this instance is greater than the other.
operator >=(covariant Name other) bool
Return if this instance is greater than or equal to the other.