copyWith method
Crew
copyWith({
- int? id,
- DateTime? dbDateCreated,
- DateTime? dbDateUpdated,
- CrewStatus? status,
- String? firstName,
- String? lastName,
- String? middleName,
- String? email,
- String? phone,
- List<
CrewAddress> ? addresses, - List<
CrewContact> ? contacts, - CrewClassification? classification,
- String? legalFirstName,
- String? legalLastName,
- String? usStateOfResidence,
- String? country,
- String? rate,
- CrewRateType? rateType,
- String? rateCurrency,
- String? travelRate,
- CrewTravelRateSource? travelRateSource,
- double? overallRating,
- bool? projectManager,
- String? code,
- String? externalCode,
- bool? validPassport,
- CrewShirtSize? shirtSize,
- DateTime? dateOnboarded,
- String? note,
- List<
CrewPosition> ? positions, - CrewSettings? settings,
- List<
CrewProfileURL> ? profiles, - List<
CrewNote> ? notes, - int? division,
- int? vendor,
- String? nearestAirport,
- List<
CrewTag> ? tags, - List<
int> ? localMarkets, - int? payrollGroup,
Implementation
Crew copyWith(
{int? id,
DateTime? dbDateCreated,
DateTime? dbDateUpdated,
CrewStatus? status,
String? firstName,
String? lastName,
String? middleName,
String? email,
String? phone,
List<CrewAddress>? addresses,
List<CrewContact>? contacts,
CrewClassification? classification,
String? legalFirstName,
String? legalLastName,
String? usStateOfResidence,
String? country,
String? rate,
CrewRateType? rateType,
String? rateCurrency,
String? travelRate,
CrewTravelRateSource? travelRateSource,
double? overallRating,
bool? projectManager,
String? code,
String? externalCode,
bool? validPassport,
CrewShirtSize? shirtSize,
DateTime? dateOnboarded,
String? note,
List<CrewPosition>? positions,
CrewSettings? settings,
List<CrewProfileURL>? profiles,
List<CrewNote>? notes,
int? division,
List<CrewUnavailability>? unavailability,
int? vendor,
String? nearestAirport,
List<CrewTag>? tags,
List<int>? localMarkets,
int? payrollGroup}) {
return Crew(
id: id ?? this.id,
dbDateCreated: dbDateCreated ?? this.dbDateCreated,
dbDateUpdated: dbDateUpdated ?? this.dbDateUpdated,
status: status ?? this.status,
firstName: firstName ?? this.firstName,
lastName: lastName ?? this.lastName,
middleName: middleName ?? this.middleName,
email: email ?? this.email,
phone: phone ?? this.phone,
addresses: addresses ?? this.addresses,
contacts: contacts ?? this.contacts,
classification: classification ?? this.classification,
legalFirstName: legalFirstName ?? this.legalFirstName,
legalLastName: legalLastName ?? this.legalLastName,
usStateOfResidence: usStateOfResidence ?? this.usStateOfResidence,
country: country ?? this.country,
rate: rate ?? this.rate,
rateType: rateType ?? this.rateType,
rateCurrency: rateCurrency ?? this.rateCurrency,
travelRate: travelRate ?? this.travelRate,
travelRateSource: travelRateSource ?? this.travelRateSource,
overallRating: overallRating ?? this.overallRating,
projectManager: projectManager ?? this.projectManager,
code: code ?? this.code,
externalCode: externalCode ?? this.externalCode,
validPassport: validPassport ?? this.validPassport,
shirtSize: shirtSize ?? this.shirtSize,
dateOnboarded: dateOnboarded ?? this.dateOnboarded,
note: note ?? this.note,
positions: positions ?? this.positions,
settings: settings ?? this.settings,
profiles: profiles ?? this.profiles,
notes: notes ?? this.notes,
division: division ?? this.division,
unavailability: unavailability ?? this.unavailability,
vendor: vendor ?? this.vendor,
nearestAirport: nearestAirport ?? this.nearestAirport,
tags: tags ?? this.tags,
localMarkets: localMarkets ?? this.localMarkets,
payrollGroup: payrollGroup ?? this.payrollGroup);
}