AdBanner constructor

AdBanner({
  1. String? adUnitId,
  2. Widget widgetAboveIfAddIsShown = const SizedBox.shrink(),
  3. Widget widgetBelowIfAddIsShown = const SizedBox.shrink(),
  4. Color backgroundColor = Colors.white,
  5. Key? key,
})

Implementation

AdBanner(
    {String? adUnitId,
    this.widgetAboveIfAddIsShown = const SizedBox.shrink(),
    this.widgetBelowIfAddIsShown = const SizedBox.shrink(),
    this.backgroundColor = Colors.white,
    Key? key})
    : super(key: key) {
  future = AdService().getBanner(adUnitId: adUnitId);
}