copyWith method

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

Implementation

Contact copyWith(
    {String? firstName,
    String? lastName,
    String? email,
    String? phone,
    String? address,
    String? icon,
    String? id,
    String? $id,
    int? cstamp,
    String? cby,
    String? uby,
    int? ustamp}) {
  return Contact(
      firstName: firstName ?? this.firstName,
      lastName: lastName ?? this.lastName,
      email: email ?? this.email,
      phone: phone ?? this.phone,
      address: address ?? this.address,
      icon: icon ?? this.icon,
      id: id ?? this.id,
      $id: $id ?? this.$id,
      cstamp: cstamp ?? this.cstamp,
      cby: cby ?? this.cby,
      uby: uby ?? this.uby,
      ustamp: ustamp ?? this.ustamp);
}