BannerAdWidget.adaptive constructor

const BannerAdWidget.adaptive({
  1. required AdManager manager,
  2. void onEvent(
    1. AdEvent event
    )?,
  3. Key? key,
})

Creates an adaptive banner ad widget.

The banner automatically adjusts its width to fill the available space and selects the optimal height.

Implementation

const BannerAdWidget.adaptive({
  required this.manager,
  this.onEvent,
  super.key,
})  : size = null,
      adaptive = true;