EnrollPlugin constructor

const EnrollPlugin({
  1. Key? key,
  2. EnrollLocalizations localizationCode = EnrollLocalizations.en,
  3. EnrollEnvironment enrollEnvironment = EnrollEnvironment.staging,
  4. EnrollMode enrollMode = EnrollMode.onboarding,
  5. required String tenantId,
  6. required String tenantSecret,
  7. required dynamic onSuccess(
    1. String applicantId
    ),
  8. required dynamic onError(
    1. String error
    ),
  9. required dynamic onGettingRequestId(
    1. String requestId
    ),
  10. required BuildContext mainScreenContext,
  11. String? googleApiKey,
  12. EnrollColors? enrollColors,
  13. String? levelOfTrust,
  14. String? applicationId,
  15. String? requestId,
  16. String? templateId,
  17. String? contractParameters,
  18. bool? skipTutorial,
  19. String? correlationId,
  20. 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});