copyWith method

VenueContact copyWith({
  1. int? id,
  2. DateTime? dbDateCreated,
  3. DateTime? dbDateUpdated,
  4. VenueContactType? type,
  5. int? venue,
  6. String? firstName,
  7. String? lastName,
  8. String? email,
  9. String? mobile,
  10. String? phone,
  11. String? extension,
  12. String? fax,
  13. String? companyName,
  14. String? jobTitle,
})

Implementation

VenueContact copyWith(
    {int? id,
    DateTime? dbDateCreated,
    DateTime? dbDateUpdated,
    enums.VenueContactType? type,
    int? venue,
    String? firstName,
    String? lastName,
    String? email,
    String? mobile,
    String? phone,
    String? extension,
    String? fax,
    String? companyName,
    String? jobTitle}) {
  return VenueContact(
      id: id ?? this.id,
      dbDateCreated: dbDateCreated ?? this.dbDateCreated,
      dbDateUpdated: dbDateUpdated ?? this.dbDateUpdated,
      type: type ?? this.type,
      venue: venue ?? this.venue,
      firstName: firstName ?? this.firstName,
      lastName: lastName ?? this.lastName,
      email: email ?? this.email,
      mobile: mobile ?? this.mobile,
      phone: phone ?? this.phone,
      extension: extension ?? this.extension,
      fax: fax ?? this.fax,
      companyName: companyName ?? this.companyName,
      jobTitle: jobTitle ?? this.jobTitle);
}