canShowAd property

bool get canShowAd

Returns whether the ad can be shown based on the current state.

Implementation

bool get canShowAd {
  if (isInitialized) {
    final adInfo = currentState.adInfo;
    final threshold = adInfo.splashAdThreshold;

    return _appLaunchCounter > threshold;
  }

  return false;
}