defaultConfig static method

NativeAdCustomOptions defaultConfig(
  1. NativeAdSize nativeAdSize, {
  2. AdStarsConfig? adStarsConfig,
  3. AdPriceConfig? adPriceConfig,
  4. AdStoreConfig? adStoreConfig,
  5. AdHeadlineConfig? adHeadlineConfig,
  6. AdAdvertiserConfig? adAdvertiserConfig,
  7. AdIconConfig? adIconConfig,
  8. AdBodyConfig? adBodyConfig,
  9. AdActionButtonConfig? adActionButtonConfig,
  10. String backgroundColor = "#000000",
  11. AdLayoutConfig? adLayoutConfig,
  12. AdMediaConfig? adMediaConfig,
})

Generates default options

Implementation

static NativeAdCustomOptions defaultConfig(
  NativeAdSize nativeAdSize, {
  AdStarsConfig? adStarsConfig,
  AdPriceConfig? adPriceConfig,
  AdStoreConfig? adStoreConfig,
  AdHeadlineConfig? adHeadlineConfig,
  AdAdvertiserConfig? adAdvertiserConfig,
  AdIconConfig? adIconConfig,
  AdBodyConfig? adBodyConfig,
  AdActionButtonConfig? adActionButtonConfig,
  String backgroundColor = "#000000",
  AdLayoutConfig? adLayoutConfig,
  AdMediaConfig? adMediaConfig,
}) {
  return NativeAdCustomOptions(
    nativeAdSize,
    adStarsConfig: adStarsConfig ?? AdStarsConfig(),
    adPriceConfig: adPriceConfig ?? AdPriceConfig(),
    adStoreConfig: adStoreConfig ?? AdStoreConfig(),
    adHeadlineConfig: adHeadlineConfig ?? AdHeadlineConfig(),
    adAdvertiserConfig: adAdvertiserConfig ?? AdAdvertiserConfig(),
    adIconConfig: adIconConfig ?? AdIconConfig(),
    adBodyConfig: adBodyConfig ?? AdBodyConfig(),
    adActionButtonConfig: adActionButtonConfig ?? AdActionButtonConfig(),
    adLayoutConfig: adLayoutConfig ?? AdLayoutConfig(),
    adMediaConfig: adMediaConfig ?? AdMediaConfig(),
    backgroundColor: backgroundColor,
  );
}