copyWith method
AgeVerificationState
copyWith({
- AgeVerificationStep? step,
- String? sessionId,
- String? ageVerificationId,
- LivenessSession? livenessSession,
- Credentials? credentials,
- bool? isLoading,
- String? error,
- bool? shouldDismiss,
Implementation
AgeVerificationState copyWith({
AgeVerificationStep? step,
String? sessionId,
String? ageVerificationId,
LivenessSession? livenessSession,
Credentials? credentials,
bool? isLoading,
String? error,
bool? shouldDismiss,
}) {
return AgeVerificationState(
step: step ?? this.step,
sessionId: sessionId ?? this.sessionId,
ageVerificationId: ageVerificationId ?? this.ageVerificationId,
livenessSession: livenessSession ?? this.livenessSession,
credentials: credentials ?? this.credentials,
isLoading: isLoading ?? this.isLoading,
error: error,
shouldDismiss: shouldDismiss ?? this.shouldDismiss,
);
}