defaultConfig static method
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,
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,
);
}