reloadAd method

void reloadAd({
  1. bool forceRefresh = false,
  2. int numberAds = 1,
})

Reload new ad with specific native ad id

  • forceRefresh, force reload a new ad or using cache ad

Implementation

void reloadAd({bool forceRefresh = false, int numberAds = 1}) {
  if (_adUnitID == null) return;

  _channel!.invokeMethod("reloadAd", {
    "forceRefresh": forceRefresh,
    "numberAds": numberAds,
  });
}