BannerSize enum

Enum for banner sizes matching Android SDK constants

Inheritance
Available extensions

Values

const BannerSize(0, 320.0, 50.0)
largeBanner → const BannerSize
const BannerSize(1, 320.0, 100.0)
mediumRectangle → const BannerSize
const BannerSize(2, 300.0, 250.0)
skyscraper → const BannerSize
const BannerSize(5, 120.0, 600.0)
wideSkyscraper → const BannerSize
const BannerSize(6, 160.0, 600.0)
square → const BannerSize
const BannerSize(7, 250.0, 250.0)
smallSquare → const BannerSize
const BannerSize(8, 200.0, 200.0)
smartBanner → const BannerSize
const BannerSize(9, double.infinity, 50.0)

Properties

apiBannerSize → String
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)
no setter
apiValue → String
Convert to string representation for API calls
no setter
defaultHeight → double
Get default height in logical pixels (dp)
no setter
defaultHeightDp → double
final
defaultWidth → double
Get default width in logical pixels (dp)
no setter
defaultWidthDp → double
final
hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
isFullWidth → bool
Check if this banner size should use full width (like SMARTBANNER)
no setter
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromString(String value) → BannerSize?
Create from string value
toApiBannerSize(String bannerSizeString) → String
Convert banner size string (apiValue format like "BANNER") to API banner size format (widthxheight like "320x50") Returns the widthxheight format string, or the original string if conversion fails

Constants

values → const List<BannerSize>
A constant List of the values in this enum, in order of their declaration.