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