Name class abstract

Name

Properties:

  • firstName - The individual's first name. Must not be blank. The combined length of firstName and lastName must be at least 3 characters. For example, a firstName of N and lastName of Ha is accepted. Only the following special characters are allowed: -, —, ., /. Accents and non-Latin scripts are allowed. The field cannot contain emojis, only one repeated character (unless two characters long), only symbols, only numbers, only spaces, or fictitious names such as John Doe or N/A. For more information, see validations on fields.
  • infix - The infix in the individual's name, if any. Only the following special characters are allowed: -, —, ., /. Accents and non-Latin scripts are allowed. The field cannot contain emojis, only symbols, only numbers, or only spaces. For more information, see validations on fields.
  • lastName - The individual's last name. Must not be blank. The combined length of firstName and lastName must be at least 3 characters. Only the following special characters are allowed: -, —, ., /. Accents and non-Latin scripts are allowed. The field cannot contain emojis, only one repeated character (unless two characters long), only symbols, only numbers, only spaces, or fictitious names such as John Doe or N/A. For more information, see validations on fields.
Annotations
  • @BuiltValue.new()

Constructors

Name([void updates(NameBuilder b)])
factory

Properties

firstName → String
The individual's first name. Must not be blank. The combined length of firstName and lastName must be at least 3 characters. For example, a firstName of N and lastName of Ha is accepted. Only the following special characters are allowed: -, —, ., /. Accents and non-Latin scripts are allowed. The field cannot contain emojis, only one repeated character (unless two characters long), only symbols, only numbers, only spaces, or fictitious names such as John Doe or N/A. For more information, see validations on fields.
no setter
hashCode → int
The hash code for this object.
no setterinherited
infix → String?
The infix in the individual's name, if any. Only the following special characters are allowed: -, —, ., /. Accents and non-Latin scripts are allowed. The field cannot contain emojis, only symbols, only numbers, or only spaces. For more information, see validations on fields.
no setter
lastName → String
The individual's last name. Must not be blank. The combined length of firstName and lastName must be at least 3 characters. Only the following special characters are allowed: -, —, ., /. Accents and non-Latin scripts are allowed. The field cannot contain emojis, only one repeated character (unless two characters long), only symbols, only numbers, only spaces, or fictitious names such as John Doe or N/A. For more information, see validations on fields.
no setter
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
rebuild(dynamic updates(NameBuilder)) → Name
Rebuilds the instance.
inherited
toBuilder() → NameBuilder
Converts the instance to a builder B.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

serializer → Serializer<Name>
no setter