OnboardingState class

Inheritance

Constructors

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})
const
OnboardingState.initial()
Factory for initial state
factory

Properties

companyAddress String?
final
companyCif String?
final
companyName String?
final
currentStep int
final
engineerId String?
final
error String?
final
hashCode int
The hash code for this object.
no setterinherited
isCompanyInfoComplete bool
no setter
isLoading bool
final
isPersonalInfoComplete bool
no setter
isSaving bool
final
lastSavedAt DateTime?
final
locale String
final
notificationsEnabled bool
final
personalDni String?
final
personalEmail String?
final
personalName String?
final
personalPhone String?
final
professionalType ProfessionalType
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stepConfigs List<OnboardingStepConfig>
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
textSizePreference TextSizePreference
final
themePreference AppThemeMode
final
totalSteps int
final

Methods

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}) OnboardingState
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited