NativeAdWidget constructor
NativeAdWidget({
- required String adUnit,
- required NativeAdType? adType,
- required double height,
- double? borderRoundness,
- String? backgroundColor,
- String? textColorButton,
- String? buttonColor,
- String? shimmerBackgroundColor,
- int? buttonRoundness,
- int? buttonHeight,
- bool enableShimmerEffect = false,
- AdIcon? adIcon,
- NativeShimmerColor? shimmerColor,
Constructs a NativeAdWidget.
The adUnit
, adType
, and height
are required.
You can customize the appearance of the ad with parameters like
backgroundColor
, textColorButton
, buttonColor
, buttonRoundness
,
buttonHeight
, borderRoundness
, enableShimmerEffect
, adIcon
,
and shimmerColor
.
Implementation
NativeAdWidget({
required this.adUnit,
required this.adType,
required this.height,
this.borderRoundness,
this.backgroundColor,
this.textColorButton,
this.buttonColor,
this.shimmerBackgroundColor,
this.buttonRoundness,
this.buttonHeight,
this.enableShimmerEffect = false,
this.adIcon,
this.shimmerColor,
});