Name class

Representation of a string type name with some extra capabilities.

It helps to define and understand the concept of namon/nama.

Implementers

Constructors

Name(String value, Namon type, [CapsRange? capsRange])
Creates augmented names by adding extra functionality to a string name.
Name.first(String value)
Creates a first name.
Name.last(String value)
Creates a last name.
Name.middle(String value)
Creates a middle name.
Name.prefix(String value)
Creates a prefix.
Name.suffix(String value)
Creates a suffix.

Properties

hashCode int
The hash code for this object.
no setteroverride
isFirstName bool
Whether the name is a first name.
no setter
isLastName bool
Whether the name is a last name.
no setter
isMiddleName bool
Whether the name is a middle name.
no setter
isPrefix bool
Whether the name is a prefix.
no setter
isSuffix bool
Whether the name is a suffix.
no setter
length int
The length of the name.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Namon
The name type.
final
value String
The piece of string treated as a name.
getter/setter pair

Methods

caps([CapsRange? range]) → void
Capitalizes the name.
decaps([CapsRange? range]) → void
De-capitalizes the name.
initials() List<String>
Gets the initials (first character) of this name.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
Returns true if other is equal to this name.
override