createBanner abstract method

Widget createBanner({
  1. required String configurationId,
  2. BannerEventListener? lifecycleCallbacks,
})

Creates a banner type ad widget. Banner is a fixed size static ad. First, we cache the ad, load it, and when it loads, we display it.

configurationId Id used to fetch the unit configuration. lifecycleCallbacks is option see the BannerEventListener to know when the callbacks are called.

Implementation

Widget createBanner({
  required String configurationId,
  BannerEventListener? lifecycleCallbacks,
});