SmileIDBiometricKYC constructor
SmileIDBiometricKYC({
- Key? key,
- required String? country,
- String? idType,
- String? idNumber,
- String? firstName,
- String? middleName,
- String? lastName,
- String? dob,
- String? bankCode,
- bool? entered,
- String? userId,
- String? jobId,
- bool allowNewEnroll = false,
- bool allowAgentMode = false,
- bool showAttribution = true,
- bool showInstructions = true,
- Map<
String, String> ? extraPartnerParams, - required dynamic onSuccess(
- String resultJson
- required dynamic onError(
- String errorMessage
Implementation
factory SmileIDBiometricKYC({
Key? key,
// userId and jobId can't actually be null in the native SDK but we delegate their creation to
// the native platform code, since that's where the random ID creation happens
required String? country,
String? idType,
String? idNumber,
String? firstName,
String? middleName,
String? lastName,
String? dob,
String? bankCode,
bool? entered,
String? userId,
String? jobId,
bool allowNewEnroll = false,
bool allowAgentMode = false,
bool showAttribution = true,
bool showInstructions = true,
Map<String, String>? extraPartnerParams,
required Function(String resultJson) onSuccess,
required Function(String errorMessage) onError,
}) {
return SmileIDBiometricKYC._(
onSuccess: onSuccess,
onError: onError,
creationParams: {
"country": country,
"idType": idType,
"idNumber": idNumber,
"firstName": firstName,
"middleName": middleName,
"lastName": lastName,
"dob": dob,
"bankCode": bankCode,
"entered": entered,
"userId": userId,
"jobId": jobId,
"allowNewEnroll": allowNewEnroll,
"allowAgentMode": allowAgentMode,
"showAttribution": showAttribution,
"showInstructions": showInstructions,
"extraPartnerParams": extraPartnerParams,
},
);
}