SmileIDDocumentCaptureView constructor

SmileIDDocumentCaptureView({
  1. Key? key,
  2. bool isDocumentFrontSide = true,
  3. bool showInstructions = true,
  4. bool showAttribution = true,
  5. bool allowGalleryUpload = true,
  6. bool showConfirmationDialog = true,
  7. double? idAspectRatio,
  8. required dynamic onSuccess(
    1. String resultJson
    ),
  9. required dynamic onError(
    1. String errorMessage
    ),
})

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,
    },
  );
}