copyWith method
EventRosterPosition
copyWith({
- int? id,
- DateTime? dbDateCreated,
- DateTime? dbDateUpdated,
- int? event,
- int? eventPosition,
- int? group,
- int? crew,
- int? crewPosition,
- User? userAdded,
- User? userApproved,
- EventRosterPositionStatus? status,
- DateTime? dateConfirmed,
- DateTime? dateApproved,
- DateTime? dateAdded,
- String? rate,
- String? rateCurrency,
- EventRosterPositionRateType? rateType,
- int? removalReason,
- String? totalLabor,
- String? totalOverhead,
- String? cachedAnalytics,
Implementation
EventRosterPosition copyWith(
{int? id,
DateTime? dbDateCreated,
DateTime? dbDateUpdated,
int? event,
int? eventPosition,
int? group,
int? crew,
int? crewPosition,
User? userAdded,
User? userApproved,
enums.EventRosterPositionStatus? status,
DateTime? dateConfirmed,
DateTime? dateApproved,
DateTime? dateAdded,
String? rate,
String? rateCurrency,
enums.EventRosterPositionRateType? rateType,
int? removalReason,
String? totalLabor,
String? totalOverhead,
String? cachedAnalytics}) {
return EventRosterPosition(
id: id ?? this.id,
dbDateCreated: dbDateCreated ?? this.dbDateCreated,
dbDateUpdated: dbDateUpdated ?? this.dbDateUpdated,
event: event ?? this.event,
eventPosition: eventPosition ?? this.eventPosition,
group: group ?? this.group,
crew: crew ?? this.crew,
crewPosition: crewPosition ?? this.crewPosition,
userAdded: userAdded ?? this.userAdded,
userApproved: userApproved ?? this.userApproved,
status: status ?? this.status,
dateConfirmed: dateConfirmed ?? this.dateConfirmed,
dateApproved: dateApproved ?? this.dateApproved,
dateAdded: dateAdded ?? this.dateAdded,
rate: rate ?? this.rate,
rateCurrency: rateCurrency ?? this.rateCurrency,
rateType: rateType ?? this.rateType,
removalReason: removalReason ?? this.removalReason,
totalLabor: totalLabor ?? this.totalLabor,
totalOverhead: totalOverhead ?? this.totalOverhead,
cachedAnalytics: cachedAnalytics ?? this.cachedAnalytics);
}