CarouselAdWidget constructor

const CarouselAdWidget({
  1. Key? key,
  2. required Map<String, dynamic> adData,
  3. double? height,
  4. double? width,
  5. void onViewAppeared(
    1. Map,
    2. String
    )?,
  6. void onAdClick(
    1. Map? adData
    )?,
  7. String? adLabelText,
  8. String? adLabelAlignment,
  9. required OsmosConfig config,
})

Creates a CarouselAdWidget.

adData is required. Optionally, you can set height, width, onAdClick, and onViewAppeared.

Implementation

const CarouselAdWidget(
    {super.key,
    required this.adData,
    this.height,
    this.width,
    this.onViewAppeared,
    this.onAdClick,
    this.adLabelText,
    this.adLabelAlignment,
    required this.config});