copyWith method

VerificationState copyWith({
  1. VerificationStep? currentStep,
  2. bool? shouldDismiss,
  3. String? errorMessage,
  4. bool? showError,
  5. Branding? branding,
  6. IdDocumentState? currentEntityState,
  7. VerificationStep? nextStep,
  8. String? pendingSessionId,
  9. IdDocumentState? pendingEntityState,
  10. ExtraData? pendingExtraData,
  11. Requirement? pendingRequirement,
  12. bool? isEstablishingSession,
  13. bool? canProceed,
})

Implementation

VerificationState copyWith({
  VerificationStep? currentStep,
  bool? shouldDismiss,
  String? errorMessage,
  bool? showError,
  Branding? branding,
  IdDocumentState? currentEntityState,
  VerificationStep? nextStep,
  String? pendingSessionId,
  IdDocumentState? pendingEntityState,
  ExtraData? pendingExtraData,
  Requirement? pendingRequirement,
  bool? isEstablishingSession,
  bool? canProceed,
}) {
  return VerificationState(
    currentStep: currentStep ?? this.currentStep,
    shouldDismiss: shouldDismiss ?? this.shouldDismiss,
    errorMessage: errorMessage ?? this.errorMessage,
    showError: showError ?? this.showError,
    branding: branding ?? this.branding,
    currentEntityState: currentEntityState ?? this.currentEntityState,
    nextStep: nextStep ?? this.nextStep,
    pendingSessionId: pendingSessionId ?? this.pendingSessionId,
    pendingEntityState: pendingEntityState ?? this.pendingEntityState,
    pendingExtraData: pendingExtraData ?? this.pendingExtraData,
    pendingRequirement: pendingRequirement ?? this.pendingRequirement,
    isEstablishingSession: isEstablishingSession ?? this.isEstablishingSession,
    canProceed: canProceed ?? this.canProceed,
  );
}