copyWith method

OrganizationRegistrationState copyWith({
  1. String? selectedStatus,
  2. String? selectedDesignation,
  3. String? selectedState,
  4. String? selectedCity,
})

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,
  );
}