loadAndShowConsentFormIfRequired method

  1. @override
Future<void> loadAndShowConsentFormIfRequired()
override

Loads and shows the consent form if consent is required; completes when dismissed. Throws an AdFlowError (kind consent) on form error.

Implementation

@override
Future<void> loadAndShowConsentFormIfRequired() async {
  loadAndShowConsentFormCalls++;
  final error = consentFormError;
  if (error != null) throw error;
  onConsentFormShown?.call();
}