OnboardingState constructor
const
OnboardingState({ - int currentStep = 0,
- int totalSteps = 4,
- List<OnboardingStepConfig> stepConfigs = const [OnboardingStepConfig.personalInfo, OnboardingStepConfig.professionalType, OnboardingStepConfig.preferences, OnboardingStepConfig.welcome],
- bool isLoading = false,
- bool isSaving = false,
- String? error,
- DateTime? lastSavedAt,
- String? personalName,
- String? personalEmail,
- String? personalPhone,
- String? personalDni,
- String? engineerId,
- ProfessionalType professionalType = ProfessionalType.freelancer,
- String? companyCif,
- String? companyName,
- String? companyAddress,
- String locale = 'es',
- AppThemeMode themePreference = AppThemeMode.dark,
- TextSizePreference textSizePreference = TextSizePreference.medium,
- bool notificationsEnabled = true,
})
Implementation
const OnboardingState({
this.currentStep = 0,
this.totalSteps = 4,
this.stepConfigs = const [
OnboardingStepConfig.personalInfo,
OnboardingStepConfig.professionalType,
OnboardingStepConfig.preferences,
OnboardingStepConfig.welcome,
],
this.isLoading = false,
this.isSaving = false,
this.error,
this.lastSavedAt,
this.personalName,
this.personalEmail,
this.personalPhone,
this.personalDni,
this.engineerId,
this.professionalType = ProfessionalType.freelancer,
this.companyCif,
this.companyName,
this.companyAddress,
this.locale = 'es',
this.themePreference = AppThemeMode.dark,
this.textSizePreference = TextSizePreference.medium,
this.notificationsEnabled = true,
});