Contact constructor

Contact(
  1. String id,
  2. String displayName,
  3. {Uint8List photo,
  4. Name name,
  5. List<Phone> phones: const [],
  6. List<Email> emails: const [],
  7. List<Address> addresses: const [],
  8. List<Organization> organizations: const [],
  9. List<Website> websites: const [],
  10. List<SocialMedia> socialMedias: const [],
  11. List<Event> events: const [],
  12. List<Note> notes: const [],
  13. List<Account> accounts: const []}
)

Implementation

Contact(
  this.id,
  this.displayName, {
  this.photo,
  Name name,
  this.phones = const [],
  this.emails = const [],
  this.addresses = const [],
  this.organizations = const [],
  this.websites = const [],
  this.socialMedias = const [],
  this.events = const [],
  this.notes = const [],
  this.accounts = const [],
}) : this.name = name ?? Name();