copyWith method

Venue copyWith({
  1. int? id,
  2. DateTime? dbDateCreated,
  3. DateTime? dbDateUpdated,
  4. String? code,
  5. String? externalCode,
  6. String? name,
  7. VenueStatus? status,
  8. List<int>? rooms,
  9. List<int>? notes,
  10. List<int>? contacts,
  11. String? street1,
  12. String? street2,
  13. String? street3,
  14. String? locality,
  15. String? region,
  16. String? postalCode,
  17. String? country,
  18. String? phone,
  19. String? airport,
  20. int? market,
})

Implementation

Venue copyWith(
    {int? id,
    DateTime? dbDateCreated,
    DateTime? dbDateUpdated,
    String? code,
    String? externalCode,
    String? name,
    enums.VenueStatus? status,
    List<int>? rooms,
    List<int>? notes,
    List<int>? contacts,
    String? street1,
    String? street2,
    String? street3,
    String? locality,
    String? region,
    String? postalCode,
    String? country,
    String? phone,
    String? airport,
    int? market}) {
  return Venue(
      id: id ?? this.id,
      dbDateCreated: dbDateCreated ?? this.dbDateCreated,
      dbDateUpdated: dbDateUpdated ?? this.dbDateUpdated,
      code: code ?? this.code,
      externalCode: externalCode ?? this.externalCode,
      name: name ?? this.name,
      status: status ?? this.status,
      rooms: rooms ?? this.rooms,
      notes: notes ?? this.notes,
      contacts: contacts ?? this.contacts,
      street1: street1 ?? this.street1,
      street2: street2 ?? this.street2,
      street3: street3 ?? this.street3,
      locality: locality ?? this.locality,
      region: region ?? this.region,
      postalCode: postalCode ?? this.postalCode,
      country: country ?? this.country,
      phone: phone ?? this.phone,
      airport: airport ?? this.airport,
      market: market ?? this.market);
}