EnrollPlugin constructor
- {Key? key,
- EnrollLocalizations localizationCode = EnrollLocalizations.en,
- EnrollEnvironment enrollEnvironment = EnrollEnvironment.staging,
- EnrollMode enrollMode = EnrollMode.onboarding,
- required String tenantId,
- required String tenantSecret,
- required Function onSuccess,
- required dynamic onError(
- String error
- required dynamic onGettingRequestId(
- String requestId
- required BuildContext mainScreenContext,
- String? googleApiKey,
- EnrollColors? enrollColors,
- String? levelOfTrust,
- String? applicationId,
- bool? skipTutorial,
- String? correlationId}
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.skipTutorial,
this.correlationId,
});