loadAndShowConsentFormIfRequired static method

Future<void> loadAndShowConsentFormIfRequired(
  1. OnConsentFormDismissedListener onConsentFormDismissedListener
)

Loads a consent form and immediately shows it.

Implementation

static Future<void> loadAndShowConsentFormIfRequired(
  OnConsentFormDismissedListener onConsentFormDismissedListener,
) async {
  onConsentFormDismissedListener(
    await UserMessagingChannel.instance.loadAndShowConsentFormIfRequired(),
  );
}