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}) {
  this._address = address;
  this._firstName = firstName;
  this._lastName = lastName;
  if (fullName == null) {
    this._fullName = _firstName! + " " + _lastName!;
  } else {
    this._fullName = fullName;
  }
  this._thumbnail = thumbnail;
  this._photo = photo;
}