handleAskForConsentEvent method

Stream<FastAdInfoBlocState> handleAskForConsentEvent()

Implementation

Stream<FastAdInfoBlocState> handleAskForConsentEvent() async* {
  if (isInitialized) {
    await FastAdConsentService.instance.showConsentForm();

    final consentStatus = await _consentService.getConsentStatus();

    if (consentStatus == ConsentStatus.unknown) {
      addEvent(FastAdInfoBlocEvent.constentStatusChanged(consentStatus));
    }
  }
}