HighfivveBannerAdWidget constructor

const HighfivveBannerAdWidget({
  1. required String position,
  2. bool showWidget = true,
  3. String? pageType,
  4. double? maxHeight,
  5. VoidCallback? onAdNotFound,
  6. Key? key,
})

Creates a HighfivveBannerAdWidget.

position is required and uniquely identifies the ad placement (e.g., "content_1"). showWidget controls whether the widget is shown (default: true). pageType describes the context or type of page (e.g., "home", "detail"). maxHeight define the minimum and maximum height of the ad widget. onAdNotFound is a callback triggered when no ad is available for this position.

Implementation

const HighfivveBannerAdWidget({
  required this.position,
  this.showWidget = true,
  this.pageType,
  this.maxHeight,
  this.onAdNotFound,
  super.key,
});