copyWith method
EventPosition
copyWith({
- int? id,
- DateTime? dbDateCreated,
- DateTime? dbDateUpdated,
- int? event,
- int? group,
- int? position,
- int? quantity,
- String? label,
- EventPositionStatus? status,
- int? sequence,
- EventPositionRateSetting? rateSetting,
- String? rate,
- String? rateCurrency,
- EventPositionRateType? rateType,
- String? billedRate,
- EventPositionBilledRateType? billedRateType,
- DateTime? scheduleBegin,
- DateTime? scheduleEnd,
- String? dayBegin,
- String? dayEnd,
- List<
ScheduleEntry> ? scheduleEntries, - bool? hideEndTime,
- String? note,
- String? externalCode,
- 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);
}