copyWith method
ScanResult
copyWith(
{ - String? name,
- String? firstName,
- String? lastName,
- String? passportNumber,
- String? nationality,
- Uint8List? docImage,
- String? age,
- String? dateOfBirth,
- Uint8List? selfieImage,
- String? transactionId,
- String? faceLivenessTransactionId,
- Map<String, dynamic>? verificationStatus,
})
Implementation
ScanResult copyWith({
String? name,
String? firstName,
String? lastName,
String? passportNumber,
String? nationality,
Uint8List? docImage,
String? age,
String? dateOfBirth,
Uint8List? selfieImage,
String? transactionId,
String? faceLivenessTransactionId,
Map<String, dynamic>? verificationStatus,
}) {
return ScanResult(
name: name ?? this.name,
firstName: firstName ?? this.firstName,
lastName: lastName ?? this.lastName,
passportNumber: passportNumber ?? this.passportNumber,
nationality: nationality ?? this.nationality,
age: age ?? this.age,
dateOfBirth: dateOfBirth ?? this.dateOfBirth,
selfieImage: selfieImage ?? this.selfieImage,
docImage: docImage ?? this.docImage,
transactionId: transactionId ?? this.transactionId,
faceLivenessTransactionId:
faceLivenessTransactionId ?? this.faceLivenessTransactionId,
verificationStatus: verificationStatus ?? this.verificationStatus,
);
}