Contact constructor
Contact(- String id,
- String displayName,
- {Uint8List photo,
- Name name,
- List<Phone> phones: const [],
- List<Email> emails: const [],
- List<Address> addresses: const [],
- List<Organization> organizations: const [],
- List<Website> websites: const [],
- List<SocialMedia> socialMedias: const [],
- List<Event> events: const [],
- List<Note> notes: const [],
- 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();