copyWith method
EventCollection
copyWith(
{ - int? id,
- DateTime? dbDateCreated,
- DateTime? dbDateUpdated,
- String? code,
- String? externalCode,
- String? name,
- DateTime? dateBegin,
- DateTime? dateEnd,
- EventCollectionStatus? status,
- String? description,
- List<int>? events,
- int? client,
- bool? hideName,
})
Implementation
EventCollection copyWith(
{int? id,
DateTime? dbDateCreated,
DateTime? dbDateUpdated,
String? code,
String? externalCode,
String? name,
DateTime? dateBegin,
DateTime? dateEnd,
EventCollectionStatus? status,
String? description,
List<int>? events,
int? client,
bool? hideName}) {
return EventCollection(
id: id ?? this.id,
dbDateCreated: dbDateCreated ?? this.dbDateCreated,
dbDateUpdated: dbDateUpdated ?? this.dbDateUpdated,
code: code ?? this.code,
externalCode: externalCode ?? this.externalCode,
name: name ?? this.name,
dateBegin: dateBegin ?? this.dateBegin,
dateEnd: dateEnd ?? this.dateEnd,
status: status ?? this.status,
description: description ?? this.description,
events: events ?? this.events,
client: client ?? this.client,
hideName: hideName ?? this.hideName);
}