NativeAdWidget constructor

NativeAdWidget({
  1. required String adUnit,
  2. required NativeAdType? adType,
  3. required double height,
  4. double? borderRoundness,
  5. String? backgroundColor,
  6. String? textColorButton,
  7. String? buttonColor,
  8. String? shimmerBackgroundColor,
  9. int? buttonRoundness,
  10. int? buttonHeight,
  11. bool enableShimmerEffect = false,
  12. AdIcon? adIcon,
  13. 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,
});