NativeAdCarousel constructor

const NativeAdCarousel({
  1. Key? key,
  2. required Map<String, dynamic> adData,
  3. required NativeAdType? adType,
  4. required double width,
  5. required OsmosConfig config,
  6. double? height,
  7. double? elementWidth,
  8. double? elementHeight,
  9. String? adLabelText,
  10. Alignment? adLabelAlignment,
  11. NativeAdStyle? customStyle,
  12. Widget? customCtaView,
  13. Widget? customBadgeView,
  14. void onAdClicked(
    1. Map<String, dynamic>
    )?,
  15. void onViewLoad(
    1. Map<String, dynamic>
    )?,
  16. void errorCallback(
    1. String error
    )?,
})

Implementation

const NativeAdCarousel({
  super.key,
  required this.adData,
  required this.adType,
  required this.width,
  required this.config,
  this.height,
  this.elementWidth,
  this.elementHeight,
  this.adLabelText,
  this.adLabelAlignment,
  this.customStyle,
  this.customCtaView,
  this.customBadgeView,
  this.onAdClicked,
  this.onViewLoad,
  this.errorCallback,
});