Name class

Represents name of an individual

Implemented types
Annotations
  • @immutable

Constructors

Name({required String? givenName, required String? surname})
Constructor of the Name class
Name.fromJson(String source)
factory
Name.fromMap(Map<String, dynamic>? map)
factory

Properties

givenName String?
Given name (first name) of the individual
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
surname String?
Surname (last name) of the individual
final

Methods

compareTo(Name other) int
Compares this object to another object.
override
copyWith({String? givenName, String? surname}) Name
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object o) bool
The equality operator.
override

Static Properties

empty Name
final