getInlineAdHeight property
double
getInlineAdHeight
Implementation
double get getInlineAdHeight {
int height = 0;
if (adMediaConfig.visible) {
height = height + adLayoutConfig.mediaContentHeight;
}
if (adActionButtonConfig.visible || adBodyConfig.visible) {
height = height + adLayoutConfig.adActionHeight;
}
if (adIconConfig.visible ||
adStarsConfig.visible ||
adPriceConfig.visible ||
adStoreConfig.visible ||
adHeadlineConfig.visible ||
adAdvertiserConfig.visible) {
height = height + adLayoutConfig.adTileHeight;
}
if (height != 0) {
height = height + 10;
}
return height.toDouble();
}