FirstName class
Representation of a first name with some extra functionality.
Constructors
Properties
-
asNames
→ List<
Name> -
Returns a combined version of the value and more if any.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasMore → bool
-
Determines whether a first name has more name parts.
no setter
- isFirstName → bool
-
Whether the name is a first name.
no setterinherited
- isLastName → bool
-
Whether the name is a last name.
no setterinherited
- isMiddleName → bool
-
Whether the name is a middle name.
no setterinherited
- isPrefix → bool
-
Whether the name is a prefix.
no setterinherited
- isSuffix → bool
-
Whether the name is a suffix.
no setterinherited
- length → int
-
The length of the name.
no setteroverride
-
more
→ List<
String> -
The additional name parts of the first name.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → Namon
-
The name type.
finalinherited
- value ↔ String
-
The piece of string treated as a name.
getter/setter pairinherited
Methods
-
caps(
[CapsRange? range]) → void -
Capitalizes the first name.
override
-
copyWith(
{String? first, List< String> ? more}) → FirstName - Makes a copy of the current name.
-
decaps(
[CapsRange? range]) → void -
De-capitalizes the first name.
override
-
initials(
{bool withMore = false}) → List< String> -
Gets the initials of the first name.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
{bool withMore = false}) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
Returns true if
other
is equal to this name.inherited