copyWith method

DealerInfoV2 copyWith({
  1. int? dealerOrgId,
  2. String? dealerId,
  3. String? dealerName,
  4. String? address,
  5. DeviceAddressV2? fullAddress,
  6. int? totalTechnicians,
  7. int? totalGenSets,
  8. String? wizardStep,
  9. bool? hasCompletedWizard,
  10. String? adminEmails,
})

Implementation

DealerInfoV2 copyWith(
    {int? dealerOrgId,
    String? dealerId,
    String? dealerName,
    String? address,
    DeviceAddressV2? fullAddress,
    int? totalTechnicians,
    int? totalGenSets,
    String? wizardStep,
    bool? hasCompletedWizard,
    String? adminEmails}) {
  return DealerInfoV2(
      dealerOrgId: dealerOrgId ?? this.dealerOrgId,
      dealerId: dealerId ?? this.dealerId,
      dealerName: dealerName ?? this.dealerName,
      address: address ?? this.address,
      fullAddress: fullAddress ?? this.fullAddress,
      totalTechnicians: totalTechnicians ?? this.totalTechnicians,
      totalGenSets: totalGenSets ?? this.totalGenSets,
      wizardStep: wizardStep ?? this.wizardStep,
      hasCompletedWizard: hasCompletedWizard ?? this.hasCompletedWizard,
      adminEmails: adminEmails ?? this.adminEmails);
}