bannerAdView method Null safety

Widget bannerAdView(
  1. {required String androidId,
  2. required String iosId,
  3. required double viewWidth,
  4. required double viewHeight,
  5. FlutterTencentadBannerCallBack? callBack}
)

banner广告

androidId android广告ID

iosId ios广告ID

viewWidth 广告宽 单位dp

viewHeight 广告高 单位dp 宽高比应该为6.4:1

FlutterTencentAdBannerCallBack 广告回调

Implementation

static Widget bannerAdView(
    { required String androidId,
      required String iosId,
    required double viewWidth,
    required double viewHeight,
    FlutterTencentadBannerCallBack? callBack}) {
  return BannerAdView(
    androidId: androidId,
    iosId: iosId,
    viewWidth: viewWidth,
    viewHeight: viewHeight,
    callBack: callBack,
  );
}