Name class

The full name of a contact.

Once created, no properties of an Name object may be changed.

Annotations
  • @immutable

Constructors

Name({String? fileAs, String? firstName, String? lastName, String? middleName, String? nickname, String? phoneticFirst, String? phoneticLast, String? phoneticMiddle, String? prefix, String? suffix})
Constructs a Name instance.
const
Name.fromJson(String json)
Constructs a Name instance from a json string.
factory
Name.fromMap(Map<String, dynamic> map)
Constructs a Name instance from a 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 (or the last names).
final
middleName String?
The middle name.
final
nickname String?
The nickname.
final
phoneticFirst String?
The phonetic first.
final
phoneticLast String?
The phonetic last.
final
phoneticMiddle String?
The phonetic middle.
final
prefix String?
The prefix that goes before the name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suffix String?
The suffix following the name.
final

Methods

copyWith({String? fileAs, String? firstName, String? lastName, String? middleName, String? nickname, String? phoneticFirst, String? phoneticLast, String? phoneticMiddle, String? prefix, String? suffix}) Name
Creates a copy of this Name instance but with the given fields replaced with the new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
Creates a JSON string representing this Name instance.
toMap() Map<String, dynamic>
Creates a Map<String, dynamic> representing this Name instance.
toString() String
A string representation of this object.
override

Operators

operator ==(covariant Name other) bool
The equality operator.
override