OnboardingState
copyWith({ - int? currentStep,
- int? totalSteps,
- List<OnboardingStepConfig>? stepConfigs,
- bool? isLoading,
- bool? isSaving,
- String? error,
- DateTime? lastSavedAt,
- String? personalName,
- String? personalEmail,
- String? personalPhone,
- String? personalDni,
- String? engineerId,
- ProfessionalType? professionalType,
- String? companyCif,
- String? companyName,
- String? companyAddress,
- String? locale,
- AppThemeMode? themePreference,
- TextSizePreference? textSizePreference,
- bool? notificationsEnabled,
})
Implementation
OnboardingState copyWith({
int? currentStep,
int? totalSteps,
List<OnboardingStepConfig>? stepConfigs,
bool? isLoading,
bool? isSaving,
String? error,
DateTime? lastSavedAt,
String? personalName,
String? personalEmail,
String? personalPhone,
String? personalDni,
String? engineerId,
ProfessionalType? professionalType,
String? companyCif,
String? companyName,
String? companyAddress,
String? locale,
AppThemeMode? themePreference,
TextSizePreference? textSizePreference,
bool? notificationsEnabled,
}) {
return OnboardingState(
currentStep: currentStep ?? this.currentStep,
totalSteps: totalSteps ?? this.totalSteps,
stepConfigs: stepConfigs ?? this.stepConfigs,
isLoading: isLoading ?? this.isLoading,
isSaving: isSaving ?? this.isSaving,
error: error,
lastSavedAt: lastSavedAt ?? this.lastSavedAt,
personalName: personalName ?? this.personalName,
personalEmail: personalEmail ?? this.personalEmail,
personalPhone: personalPhone ?? this.personalPhone,
personalDni: personalDni ?? this.personalDni,
engineerId: engineerId ?? this.engineerId,
professionalType: professionalType ?? this.professionalType,
companyCif: companyCif ?? this.companyCif,
companyName: companyName ?? this.companyName,
companyAddress: companyAddress ?? this.companyAddress,
locale: locale ?? this.locale,
themePreference: themePreference ?? this.themePreference,
textSizePreference: textSizePreference ?? this.textSizePreference,
notificationsEnabled: notificationsEnabled ?? this.notificationsEnabled,
);
}