SmileIDDocumentCaptureView constructor
SmileIDDocumentCaptureView({})
Implementation
factory SmileIDDocumentCaptureView({
Key? key,
bool isDocumentFrontSide = true,
bool showInstructions = true,
bool showAttribution = true,
bool allowGalleryUpload = true,
bool showConfirmationDialog = true,
double? idAspectRatio,
required Function(String resultJson) onSuccess,
required Function(String errorMessage) onError,
}) {
return SmileIDDocumentCaptureView._(
onSuccess: onSuccess,
onError: onError,
creationParams: {
"isDocumentFrontSide": isDocumentFrontSide,
"showInstructions": showInstructions,
"showAttribution": showAttribution,
"allowGalleryUpload": allowGalleryUpload,
"showConfirmationDialog": showConfirmationDialog,
"idAspectRatio": idAspectRatio,
},
);
}