copyWithWrapped method

Contact copyWithWrapped({
  1. Wrapped<String?>? firstName,
  2. Wrapped<String?>? lastName,
  3. Wrapped<String?>? email,
  4. Wrapped<String?>? phone,
  5. Wrapped<String?>? address,
  6. Wrapped<String?>? icon,
  7. Wrapped<String?>? id,
  8. Wrapped<String?>? $id,
  9. Wrapped<int?>? cstamp,
  10. Wrapped<String?>? cby,
  11. Wrapped<String?>? uby,
  12. Wrapped<int?>? ustamp,
})

Implementation

Contact copyWithWrapped(
    {Wrapped<String?>? firstName,
    Wrapped<String?>? lastName,
    Wrapped<String?>? email,
    Wrapped<String?>? phone,
    Wrapped<String?>? address,
    Wrapped<String?>? icon,
    Wrapped<String?>? id,
    Wrapped<String?>? $id,
    Wrapped<int?>? cstamp,
    Wrapped<String?>? cby,
    Wrapped<String?>? uby,
    Wrapped<int?>? ustamp}) {
  return Contact(
      firstName: (firstName != null ? firstName.value : this.firstName),
      lastName: (lastName != null ? lastName.value : this.lastName),
      email: (email != null ? email.value : this.email),
      phone: (phone != null ? phone.value : this.phone),
      address: (address != null ? address.value : this.address),
      icon: (icon != null ? icon.value : this.icon),
      id: (id != null ? id.value : this.id),
      $id: ($id != null ? $id.value : this.$id),
      cstamp: (cstamp != null ? cstamp.value : this.cstamp),
      cby: (cby != null ? cby.value : this.cby),
      uby: (uby != null ? uby.value : this.uby),
      ustamp: (ustamp != null ? ustamp.value : this.ustamp));
}