copyWith method

GetVerifiedConfig copyWith({
  1. DocumentReaderConfig? documentReader,
  2. FaceSDKConfig? faceSDK,
  3. ScreensConfig? screens,
  4. ByteData? license,
  5. String? faceApiUrl,
  6. String? documentReaderUrl,
  7. Future<bool> onReprocess(
    1. String docTransactionId,
    2. String? faceLivenessTransactionId
    )?,
})

Creates a copy with optional parameter overrides

Implementation

GetVerifiedConfig copyWith({
  DocumentReaderConfig? documentReader,
  FaceSDKConfig? faceSDK,
  ScreensConfig? screens,
  ByteData? license,
  String? faceApiUrl,
  String? documentReaderUrl,
  Future<bool> Function(
    String docTransactionId,
    String? faceLivenessTransactionId,
  )?
  onReprocess,
}) {
  return GetVerifiedConfig(
    documentReader: documentReader ?? this.documentReader,
    faceSDK: faceSDK ?? this.faceSDK,
    screens: screens ?? this.screens,
    license: license ?? this.license,
    faceApiUrl: faceApiUrl ?? this.faceApiUrl,
    documentReaderUrl: documentReaderUrl ?? this.documentReaderUrl,
    onReprocess: onReprocess ?? this.onReprocess,
  );
}