Contact constructor

Contact({
  1. String id = '',
  2. String displayName = '',
  3. Uint8List? thumbnail,
  4. Uint8List? photo,
  5. bool isStarred = false,
  6. Name? name,
  7. List<Phone>? phones,
  8. List<Email>? emails,
  9. List<Address>? addresses,
  10. List<Organization>? organizations,
  11. List<Website>? websites,
  12. List<SocialMedia>? socialMedias,
  13. List<Event>? events,
  14. List<Note>? notes,
  15. List<Account>? accounts,
  16. List<Group>? groups,
})

Implementation

Contact({
  this.id = '',
  this.displayName = '',
  this.thumbnail,
  this.photo,
  this.isStarred = false,
  Name? name,
  List<Phone>? phones,
  List<Email>? emails,
  List<Address>? addresses,
  List<Organization>? organizations,
  List<Website>? websites,
  List<SocialMedia>? socialMedias,
  List<Event>? events,
  List<Note>? notes,
  List<Account>? accounts,
  List<Group>? groups,
})  : name = name ?? Name(),
      phones = phones ?? <Phone>[],
      emails = emails ?? <Email>[],
      addresses = addresses ?? <Address>[],
      organizations = organizations ?? <Organization>[],
      websites = websites ?? <Website>[],
      socialMedias = socialMedias ?? <SocialMedia>[],
      events = events ?? <Event>[],
      notes = notes ?? <Note>[],
      accounts = accounts ?? <Account>[],
      groups = groups ?? <Group>[];