AddressBookParsedResult.full constructor

AddressBookParsedResult.full(
  1. List<String>? _names,
  2. List<String>? _nicknames,
  3. String? pronunciation,
  4. List<String>? _phoneNumbers,
  5. List<String?>? _phoneTypes,
  6. List<String>? _emails,
  7. List<String?>? _emailTypes,
  8. String? instantMessenger,
  9. String? note,
  10. List<String>? _addresses,
  11. List<String?>? _addressTypes,
  12. String? org,
  13. String? birthday,
  14. String? title,
  15. List<String>? _urls,
  16. 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.addressBook) {
  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');
  }
}