AddressBookParsedResult.full constructor
AddressBookParsedResult.full(
- List<
String> ? _names, - List<
String> ? _nicknames, - String? pronunciation,
- List<
String> ? _phoneNumbers, - List<
String?> ? _phoneTypes, - List<
String> ? _emails, - List<
String?> ? _emailTypes, - String? instantMessenger,
- String? note,
- List<
String> ? _addresses, - List<
String?> ? _addressTypes, - String? org,
- String? birthday,
- String? title,
- List<
String> ? _urls, - List<
String> ? geo,
Implementation
AddressBookParsedResult.full(
this._names,
this._nicknames,
this.pronunciation,
this._phoneNumbers,
this._phoneTypes,
this._emails,
this._emailTypes,
this.instantMessenger,
this.note,
this._addresses,
this._addressTypes,
this.org,
this.birthday,
this.title,
this._urls,
this.geo,
) : super(ParsedResultType.ADDRESS_BOOK) {
if (_phoneNumbers != null &&
_phoneTypes != null &&
_phoneNumbers!.length != _phoneTypes!.length) {
throw ArgumentError('Phone numbers and types lengths differ');
}
if (_emails != null &&
_emailTypes != null &&
_emails!.length != _emailTypes!.length) {
throw ArgumentError('Emails and types lengths differ');
}
if (_addresses != null &&
_addressTypes != null &&
_addresses!.length != _addressTypes!.length) {
throw ArgumentError('Addresses and types lengths differ');
}
}