loadAd method

dynamic loadAd(
  1. AdType adType
)

Implementation

loadAd(AdType adType){
  if(_loadingList.contains(adType)){
    printDebug("FlutterMaxAd --->$adType is loading  2");
    return;
  }
  if(checkHasCache(adType)){
    printDebug("FlutterMaxAd --->$adType has cache  2");
    return;
  }
  var list = _getAdListByType(adType);
  if(list.isEmpty){
    printDebug("FlutterMaxAd --->$adType list is empty  2");
    return;
  }
  _loadingList.add(adType);
  _loadAdByType(adType,list.first);
}