builder property

AdBuilder? builder
final

The builder of the ad. The ad won't be reloaded if this changes

DO:

BannerAd(
  builder: (context, child) {
    return Container(
      // Applies a blue color to the background.
      // You can use anything here to build the ad.
      // The ad won't be reloaded
      color: Colors.blue,
      child: child,
    );
  }
)

DON'T:

Container(
  color: Colors.blue,
  child: BannerAd(),
)

For more info, visit the documentation

Implementation

final AdBuilder? builder;