OnboardingState constructor

const OnboardingState({
  1. int currentStep = 0,
  2. int totalSteps = 4,
  3. List<OnboardingStepConfig> stepConfigs = const [OnboardingStepConfig.personalInfo, OnboardingStepConfig.professionalType, OnboardingStepConfig.preferences, OnboardingStepConfig.welcome],
  4. bool isLoading = false,
  5. bool isSaving = false,
  6. String? error,
  7. DateTime? lastSavedAt,
  8. String? personalName,
  9. String? personalEmail,
  10. String? personalPhone,
  11. String? personalDni,
  12. String? engineerId,
  13. ProfessionalType professionalType = ProfessionalType.freelancer,
  14. String? companyCif,
  15. String? companyName,
  16. String? companyAddress,
  17. String locale = 'es',
  18. AppThemeMode themePreference = AppThemeMode.dark,
  19. TextSizePreference textSizePreference = TextSizePreference.medium,
  20. 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,
});