simpleCheckAndLoadForm static method
void
simpleCheckAndLoadForm({
- required ConsentRequestParameters params,
- dynamic onCheckedStatus(
- ConsentStatus status
- dynamic onError(
- FormError
Implementation
static void simpleCheckAndLoadForm({
required ConsentRequestParameters params,
Function(ConsentStatus status)? onCheckedStatus,
Function(FormError)? onError,
}) {
checkConsentFormAvailable(
params: params,
onCheckFinished: (isFormAvailable) {
if (isFormAvailable) {
loadConsentForm(
onCheckedStatus: onCheckedStatus,
onError: onError,
);
} else {
onCheckedStatus?.call(ConsentStatus.obtained);
}
},
onError: onError,
);
}