checkConsentFormAvailable static method
void
checkConsentFormAvailable({
- required ConsentRequestParameters params,
- dynamic onCheckFinished(
- bool isFormAvailable
- dynamic onError(
- FormError
Implementation
static void checkConsentFormAvailable({
required ConsentRequestParameters params,
Function(bool isFormAvailable)? onCheckFinished,
Function(FormError)? onError,
}) {
ConsentInformation.instance.requestConsentInfoUpdate(
params,
() async {
final isFormAvailable = await ConsentInformation.instance.isConsentFormAvailable();
onCheckFinished?.call(isFormAvailable);
},
(error) => onError?.call(error),
);
}