copyWith method

EventPosition copyWith({
  1. int? id,
  2. DateTime? dbDateCreated,
  3. DateTime? dbDateUpdated,
  4. int? event,
  5. int? group,
  6. int? position,
  7. int? quantity,
  8. String? label,
  9. EventPositionStatus? status,
  10. int? sequence,
  11. EventPositionRateSetting? rateSetting,
  12. String? rate,
  13. String? rateCurrency,
  14. EventPositionRateType? rateType,
  15. String? billedRate,
  16. EventPositionBilledRateType? billedRateType,
  17. DateTime? scheduleBegin,
  18. DateTime? scheduleEnd,
  19. String? dayBegin,
  20. String? dayEnd,
  21. List<ScheduleEntry>? scheduleEntries,
  22. bool? hideEndTime,
  23. String? note,
  24. String? externalCode,
  25. DateTime? externalRemoveDate,
})

Implementation

EventPosition copyWith(
    {int? id,
    DateTime? dbDateCreated,
    DateTime? dbDateUpdated,
    int? event,
    int? group,
    int? position,
    int? quantity,
    String? label,
    enums.EventPositionStatus? status,
    int? sequence,
    enums.EventPositionRateSetting? rateSetting,
    String? rate,
    String? rateCurrency,
    enums.EventPositionRateType? rateType,
    String? billedRate,
    enums.EventPositionBilledRateType? billedRateType,
    DateTime? scheduleBegin,
    DateTime? scheduleEnd,
    String? dayBegin,
    String? dayEnd,
    List<ScheduleEntry>? scheduleEntries,
    bool? hideEndTime,
    String? note,
    String? externalCode,
    DateTime? externalRemoveDate}) {
  return EventPosition(
      id: id ?? this.id,
      dbDateCreated: dbDateCreated ?? this.dbDateCreated,
      dbDateUpdated: dbDateUpdated ?? this.dbDateUpdated,
      event: event ?? this.event,
      group: group ?? this.group,
      position: position ?? this.position,
      quantity: quantity ?? this.quantity,
      label: label ?? this.label,
      status: status ?? this.status,
      sequence: sequence ?? this.sequence,
      rateSetting: rateSetting ?? this.rateSetting,
      rate: rate ?? this.rate,
      rateCurrency: rateCurrency ?? this.rateCurrency,
      rateType: rateType ?? this.rateType,
      billedRate: billedRate ?? this.billedRate,
      billedRateType: billedRateType ?? this.billedRateType,
      scheduleBegin: scheduleBegin ?? this.scheduleBegin,
      scheduleEnd: scheduleEnd ?? this.scheduleEnd,
      dayBegin: dayBegin ?? this.dayBegin,
      dayEnd: dayEnd ?? this.dayEnd,
      scheduleEntries: scheduleEntries ?? this.scheduleEntries,
      hideEndTime: hideEndTime ?? this.hideEndTime,
      note: note ?? this.note,
      externalCode: externalCode ?? this.externalCode,
      externalRemoveDate: externalRemoveDate ?? this.externalRemoveDate);
}