copyWith method
Venue
copyWith({
- int? id,
- DateTime? dbDateCreated,
- DateTime? dbDateUpdated,
- String? code,
- String? externalCode,
- String? name,
- 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,
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);
}