EnrollPlugin constructor
const
EnrollPlugin({
- Key? key,
- EnrollLocalizations localizationCode = EnrollLocalizations.en,
- EnrollEnvironment enrollEnvironment = EnrollEnvironment.staging,
- EnrollMode enrollMode = EnrollMode.onboarding,
- required String tenantId,
- required String tenantSecret,
- required dynamic onSuccess(
- String applicantId
- required dynamic onError(
- String error
- required dynamic onGettingRequestId(
- String requestId
- required BuildContext mainScreenContext,
- String? googleApiKey,
- EnrollColors? enrollColors,
- String? levelOfTrust,
- String? applicationId,
- String? requestId,
- String? templateId,
- String? contractParameters,
- bool? skipTutorial,
- String? correlationId,
- EnrollForcedDocumentType? enrollForcedDocumentType,
Constructor for the EnrollPlugin widget.
Various configurations and callbacks must be provided for handling the success, error, and request ID retrieval during the enrollment process.
Implementation
const EnrollPlugin(
{super.key,
this.localizationCode = EnrollLocalizations.en,
this.enrollEnvironment = EnrollEnvironment.staging,
this.enrollMode = EnrollMode.onboarding,
required this.tenantId,
required this.tenantSecret,
required this.onSuccess,
required this.onError,
required this.onGettingRequestId,
required this.mainScreenContext,
this.googleApiKey,
this.enrollColors,
this.levelOfTrust,
this.applicationId,
this.requestId,
this.templateId,
this.contractParameters,
this.skipTutorial,
this.correlationId,
this.enrollForcedDocumentType});