Contact constructor
Contact({})
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,
}) : name = name ?? Name(),
phones = phones ?? <Phone>[],
emails = emails ?? <Email>[],
addresses = addresses ?? <Address>[],
organizations = organizations ?? <Organization>[],
organization = organizations != null && organizations.isNotEmpty
? organizations[0]
: null,
websites = websites ?? <Website>[];