copyWith method
Returns a copy of this state with updated fields if provided.
Implementation
OrganizationRegistrationState copyWith({
String? selectedStatus,
String? selectedDesignation,
String? selectedState,
String? selectedCity,
}) {
return OrganizationRegistrationState(
selectedStatus: selectedStatus ?? this.selectedStatus,
selectedDesignation: selectedDesignation ?? this.selectedDesignation,
selectedState: selectedState ?? this.selectedState,
selectedCity: selectedCity ?? this.selectedCity,
);
}