adSizeDisplayHeight method

double adSizeDisplayHeight([
  1. double deviceHeight = 0
])

Implementation

double adSizeDisplayHeight([double deviceHeight = 0]) {
  double dynamicHeight() => deviceHeight > 720
      ? 90
      : deviceHeight > 400
          ? 50
          : 32;
  switch (size) {
    case BannerAdSize.sDynamic:
      return dynamicHeight();
    case BannerAdSize.sInvalid:
      return 0;
    case BannerAdSize.sSmart:
      return dynamicHeight();
    default:
      return size.height.toDouble();
  }
}