NativeAdCarousel constructor
const
NativeAdCarousel({
- Key? key,
- required Map<
String, dynamic> adData, - required NativeAdType? adType,
- required double width,
- required OsmosConfig config,
- double? height,
- double? elementWidth,
- double? elementHeight,
- String? adLabelText,
- Alignment? adLabelAlignment,
- NativeAdStyle? customStyle,
- Widget? customCtaView,
- Widget? customBadgeView,
- void onAdClicked()?,
- void onViewLoad()?,
- void errorCallback(
- 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,
});