SmileIDSmartSelfieEnrollmentEnhanced constructor
SmileIDSmartSelfieEnrollmentEnhanced({})
Implementation
factory SmileIDSmartSelfieEnrollmentEnhanced({
Key? key,
// userId 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
String? userId,
bool allowNewEnroll = false,
bool showAttribution = true,
bool showInstructions = true,
Map<String, String>? extraPartnerParams,
required Function(String resultJson) onSuccess,
required Function(String errorMessage) onError,
}) {
return SmileIDSmartSelfieEnrollmentEnhanced._(
onSuccess: onSuccess,
onError: onError,
creationParams: {
"userId": userId,
"allowNewEnroll": allowNewEnroll,
"showAttribution": showAttribution,
"showInstructions": showInstructions,
"extraPartnerParams" : extraPartnerParams,
},
);
}