Contact constructor

Contact(
  1. String address, {
  2. String? firstName,
  3. String? lastName,
  4. String? fullName,
  5. Photo? thumbnail,
  6. Photo? photo,
})

Implementation

Contact(String address,
    {String? firstName,
    String? lastName,
    String? fullName,
    Photo? thumbnail,
    Photo? photo}) {
  _address = address;
  _firstName = firstName;
  _lastName = lastName;
  if (fullName == null) {
    _fullName = _firstName! + " " + _lastName!;
  } else {
    _fullName = fullName;
  }
  _thumbnail = thumbnail;
  _photo = photo;
}