ProjectState
copyWith({ - int? projectId,
- String? projectName,
- String? client,
- String? reference,
- String? ownerPhone,
- String? ownerEmail,
- ElectricalNode? root,
- BudgetConfig? budgetConfig,
- bool? isSaving,
- String? errorMessage,
- bool? saveSuccess,
- String? electricalStandardId,
- String? supplyVoltage,
- String? installationUsage,
- double? expectedPower,
- double? powerFactor,
- bool? requiresTechProject,
- bool? isNewLink,
})
Implementation
ProjectState copyWith({
int? projectId,
String? projectName,
String? client,
String? reference,
String? ownerPhone,
String? ownerEmail,
ElectricalNode? root,
BudgetConfig? budgetConfig,
bool? isSaving,
String? errorMessage,
bool? saveSuccess,
String? electricalStandardId,
String? supplyVoltage,
String? installationUsage,
double? expectedPower,
double? powerFactor,
bool? requiresTechProject,
bool? isNewLink,
}) {
return ProjectState(
projectId: projectId ?? this.projectId,
projectName: projectName ?? this.projectName,
client: client ?? this.client,
reference: reference ?? this.reference,
ownerPhone: ownerPhone ?? this.ownerPhone,
ownerEmail: ownerEmail ?? this.ownerEmail,
root: root ?? this.root,
budgetConfig: budgetConfig ?? this.budgetConfig,
isSaving: isSaving ?? this.isSaving,
errorMessage: errorMessage,
saveSuccess: saveSuccess ?? this.saveSuccess,
electricalStandardId: electricalStandardId ?? this.electricalStandardId,
supplyVoltage: supplyVoltage ?? this.supplyVoltage,
installationUsage: installationUsage ?? this.installationUsage,
expectedPower: expectedPower ?? this.expectedPower,
powerFactor: powerFactor ?? this.powerFactor,
requiresTechProject: requiresTechProject ?? this.requiresTechProject,
isNewLink: isNewLink ?? this.isNewLink,
);
}