Contact constructor
Contact({
- String id = '',
- String displayName = '',
- Uint8List? thumbnail,
- Uint8List? photo,
- bool 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,
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>[];