apiBannerSize property
String
get
apiBannerSize
Get banner size in "widthxheight" format for API calls Format: "widthxheight" (e.g., "320x50" for banner) For smartBanner, width is -1 to represent MATCH_PARENT (full width)
Implementation
String get apiBannerSize {
if (defaultWidthDp == double.infinity) {
// For smartBanner, width is infinity (MATCH_PARENT), use -1 to represent full width
return "-1x${defaultHeightDp.toInt()}";
}
// Format: width x height
return "${defaultWidthDp.toInt()}x${defaultHeightDp.toInt()}";
}