SmileIDSmartSelfieCaptureView constructor

SmileIDSmartSelfieCaptureView({
  1. Key? key,
  2. bool showConfirmationDialog = true,
  3. bool showInstructions = true,
  4. bool showAttribution = true,
  5. bool allowAgentMode = true,
  6. required dynamic onSuccess(
    1. String resultJson
    ),
  7. required dynamic onError(
    1. String errorMessage
    ),
})

Implementation

factory SmileIDSmartSelfieCaptureView({
  Key? key,
  bool showConfirmationDialog = true,
  bool showInstructions = true,
  bool showAttribution = true,
  bool allowAgentMode = true,
  required Function(String resultJson) onSuccess,
  required Function(String errorMessage) onError,
}) {
  return SmileIDSmartSelfieCaptureView._(
    onSuccess: onSuccess,
    onError: onError,
    creationParams: {
      "showConfirmationDialog": showConfirmationDialog,
      "showInstructions": showInstructions,
      "showAttribution": showAttribution,
      "allowAgentMode": allowAgentMode,
    },
  );
}