LastName class
Representation of a last name with some extra functionality.
Constructors
Properties
-
asNames
→ List<
Name> -
Returns a combined version of the value and mother if any.
no setter
- father → String
-
The surname inherited from a father side.
no setter
- format → Surname
-
The internal last name format.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasMother → bool
-
Returns
true
if the mother's surname is defined.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
- mother → String?
-
The surname inherited from a mother side.
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 last name.
override
-
copyWith(
{String? father, String? mother, Surname? format}) → LastName - Makes a copy of the current name.
-
decaps(
[CapsRange? range]) → void -
De-capitalizes the last name.
override
-
initials(
{Surname? format}) → List< String> -
Gets the initials of the last name.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
{Surname? format}) → String -
Returns a string representation of the last name.
override
Operators
-
operator ==(
Object other) → bool -
Returns true if
other
is equal to this name.inherited