CodiceFiscale constructor
CodiceFiscale({
- required String firstName,
- required String lastName,
- required City? birthCity,
- required CodiceFiscaleGender gender,
- required DateTime birthDate,
Implementation
CodiceFiscale(
{required this.firstName,
required this.lastName,
required this.birthCity,
required this.gender,
required this.birthDate})
: assert(firstName.isNotEmpty),
assert(lastName.isNotEmpty) {
_fiscalCode = '${lastNameCode()}${firstNameCode()}${birthDateCode()}${birthPlaceCode()}${getCheckCode()}';
}