copyWith method

EventCollection copyWith({
  1. int? id,
  2. DateTime? dbDateCreated,
  3. DateTime? dbDateUpdated,
  4. String? code,
  5. String? externalCode,
  6. String? name,
  7. DateTime? dateBegin,
  8. DateTime? dateEnd,
  9. EventCollectionStatus? status,
  10. String? description,
  11. List<int>? events,
  12. int? $client,
  13. bool? hideName,
})

Implementation

EventCollection copyWith(
    {int? id,
    DateTime? dbDateCreated,
    DateTime? dbDateUpdated,
    String? code,
    String? externalCode,
    String? name,
    DateTime? dateBegin,
    DateTime? dateEnd,
    enums.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);
}