copyWith method

Crew copyWith({
  1. int? id,
  2. DateTime? dbDateCreated,
  3. DateTime? dbDateUpdated,
  4. CrewStatus? status,
  5. String? firstName,
  6. String? lastName,
  7. String? middleName,
  8. String? email,
  9. String? phone,
  10. List<CrewAddress>? addresses,
  11. List<CrewContact>? contacts,
  12. CrewClassification? classification,
  13. String? legalFirstName,
  14. String? legalLastName,
  15. String? usStateOfResidence,
  16. String? country,
  17. String? rate,
  18. CrewRateType? rateType,
  19. String? rateCurrency,
  20. String? travelRate,
  21. CrewTravelRateSource? travelRateSource,
  22. double? overallRating,
  23. bool? projectManager,
  24. String? code,
  25. String? externalCode,
  26. bool? validPassport,
  27. CrewShirtSize? shirtSize,
  28. DateTime? dateOnboarded,
  29. String? note,
  30. List<CrewPosition>? positions,
  31. CrewSettings? settings,
  32. List<CrewProfileURL>? profiles,
  33. List<CrewNote>? notes,
  34. int? division,
  35. List<CrewUnavailability>? unavailability,
  36. int? vendor,
  37. String? nearestAirport,
  38. List<CrewTag>? tags,
  39. List<int>? localMarkets,
  40. 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);
}