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