copyWith method

AgeVerificationState copyWith({
  1. AgeVerificationStep? step,
  2. String? sessionId,
  3. String? ageVerificationId,
  4. LivenessSession? livenessSession,
  5. Credentials? credentials,
  6. bool? isLoading,
  7. String? error,
  8. 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,
  );
}